Data Recovery under the Lunix operating system Data Recovery 20041122

xiaoxiao2021-03-06  58

It turns out that the company's development server is still unable to power off.

The configuration is as follows:

PIII800 * 2, 1G memory, 160g HD one

Drag a disk array

Operating system: Lunix 2.4.21-4.el rhel3

installed:

Subversion

IPB Chinese Hyper version [x] 030813 forum

Bugzilla

Fault phenomenon:

When prompted when prompted, you can't find the file and commandlines in / proc directory.

I have tried a lot of ways, I didn't save it.

Good data in the hard drive is still there, and the other is a machine, put the development environment.

First, completely install RedHat 2.4.21-4.el and download the mysql4.0.20 version of the RPM package (4.1.7 out, no dare to use) rpm -u mysql-server-4.0.20-0.i386.rpm Nodepsrpm -u mysql-client-4.0.20-0.i386.rpm --Nodepsrpm -u mysql-design.0.20-0.30.20-0.i386 . rpm --nodepsrpm -u mysql-shared-compat-4.0.18-0.i386.rpm --Nodepsrpm -u mysql-bench-4.0.20-0.i386.rpm --Nodepsrpm -u mysql-embedded-4.0 .20-0.i386.rpm --Nodeps

/ usr / bin / mysqladmin -u root password 111111 // 111111 is a new password / usr / bin / mysqladmin -u root -h vpn01 Password 111111 // vpn01 is this host's hostname

Test mysql installed mysql -hvpn01 -uroot -p // vpn01 is this host's hostname -h is the host name - is the user name is a password, Enter password: // Enter the password When you enter the password

In the mysql> prompt, you can enter the command.

Show databases;

Feedback to you ---------- | Database | ---------- | MySQL || TEST | -------- 2 ROWS In set (0.01 sec)

Use mysql // Select MySQL Database Database Changed

The rest is SELECT, INSERT, DELETE, and UPDATE.

/ h Display Help / Q Exit

Remote connection mysql method

Remote connection mysql prompt Host '192.168.2.26' is not allowed to connect to this MySQL Server

Solution:

MySQL> Select User, Password, Host from User Where User = ""; ---- ---------- --------- | User | Password | Host | ------ ---------- --------- | | | | | | | | - ---------- ----------- 2 Rows in Set (0.00 sec)

Mysql> Select User, Password, Host from User; ---- ---------------- ----------- | User | Password | Host | ------ ---------------- ----------- | root | 5fcc735428e45938 | localhost || root | 5FC735428E45938 | VPN01 || | | | VPN01 | ------ ---------------- --- -------- 4 ROWS IN SET (0.00 sec) mysql> Update user set user = 'root', password = '5fcc735428e45938', host = '%' where user = '' and host = 'localhost' Query OK, 2 Row Affected (0.00 sec) Rows Match: 2 Changed: 2 Warnings: 0

Mysql> Commit; Query OK, 0 ROWS Affected (0.00 SEC)

Service mysql restart // Restart MySQL (Simple above configuration, because it is inside, without permission control) remotely use third-party tools (such as EMS mysql manager), see if it can be; if you can, mysql this block Save can be PASS installed Subversion (http://subversion.tigris.org/) Redhat below the RPM package, the eyes are watching (http://summersoft.fay.ar.us/pub/subversion/laret/WhiteBox -EL-3 / bin /) or download the source code package http://subversion.tigris.org/tarballs/subversion-1.1.1.tar.gz The SVN on the original server is not a drop, the buddies have not written? The installation manual has been found in the Internet, caught some useful stuff (I didn't use Apache, and I have time to say) # tar xvzf Subversion-1.1.1.tar.gz # cd Subversion-1.1.1 # ./configure --prefix = / opt / Subversion # make # make install (Oh, no parameters are compiled) Test! # CD / OPT / Subversion / bin # ./svnadmin create / TMP / TEST Create a warehouse to go / tmp / TEST directory See if you have some files, if you say that the Subversion installed successfully SVN library files on the original server, the following operations are very convenient to copy the original library file structure to the new server My library File Settings In / Opt / SVN Directory Add a line / opt / subversion / bin / svnserve -d -r / subversion / bin / svnserve -d -r / opt / svn each machine starts, automatically put the svn directory server

转载请注明原文地址:https://www.9cbs.com/read-88417.html

New Post(0)