Ok, so this is certainly a "short between the keyboard and the chair" issue... but I've been banging my head against a wall trying to figure this out and I now need HELP... please!!!!
The problem started when I thought I'd be smart and move my MySQL data to volume that had more available space on it. Quickly after moving the data to this new volume I realized that I jumped in over my head and I reverted the data back to its original location. This is when the problems started.
I frantically called a friend who guided me through the process of getting MySQL started again by issuing the command... safe_mysqld --skip-grant-tables
This seemed to work OK until the day that I got into phpMyAdmin and attempted to administrate users. I tried adding a user and got the following message...
This has led through myriad different attempts to get MySQL running again but keep running in to obstacles!!! Below is a listing of my attempts to make MySQL work again. Please, please, please... someone take a look at this and tell me what I'm doing wrong... PLEASE?
Logged in to the server as root...
Attempted to start the daemon by issuing...
Results in...
(hangs, no response, ^C does nothing, ^Z results in "
"
Listed processes running...
Attempted to kill process started by issuing...
(hangs, no response, ^Z results in "
Listed processes running...
Any attempt to issue "kill" commands for these running processes results in no result. The processes continued to run.
Issued "
" to kill unwanted processes
Moved into libexec directory
Issued "
" command as root
Resulted in...
Issued
Resulted in...
(hangs, no response, ^C does nothing, ^Z results in "
Killed open MySQL processess
Issued
Resulted...
(hangs, no response, ^C does nothing, ^Z results in "
"
BUT!!!!
Websites that I have that depend on mysql work! Please... can someone give me a clue? Shed some light on this for me?
The problem started when I thought I'd be smart and move my MySQL data to volume that had more available space on it. Quickly after moving the data to this new volume I realized that I jumped in over my head and I reverted the data back to its original location. This is when the problems started.
I frantically called a friend who guided me through the process of getting MySQL started again by issuing the command... safe_mysqld --skip-grant-tables
This seemed to work OK until the day that I got into phpMyAdmin and attempted to administrate users. I tried adding a user and got the following message...
Code:
Error
SQL-query :
GRANT USAGE ON * . * TO "test"@"%" IDENTIFIED BY "****";
MySQL said:
Unknown command
This has led through myriad different attempts to get MySQL running again but keep running in to obstacles!!! Below is a listing of my attempts to make MySQL work again. Please, please, please... someone take a look at this and tell me what I'm doing wrong... PLEASE?
Logged in to the server as root...
Attempted to start the daemon by issuing...
Code:
/bin/safe_mysqld
Results in...
Code:
Starting mysqld daemon with databases from /usr/local/mysql/var
Code:
[1]+ ... Stopped safe_mysqld
Listed processes running...
Code:
ps -ef | grep my
mysql 18840 18827 0 23:14:36 pts/1 0:00 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local
root 18827 18688 0 23:14:36 pts/1 0:00 /bin/sh ./safe_mysqld
Attempted to kill process started by issuing...
Code:
mysqladmin -uroot -p shutdown
Code:
[2]+ Stopped ... mysqladmin -uroot -p shutdown")
Listed processes running...
Code:
ps -ef | grep my
mysql 18840 18827 0 23:14:36 pts/1 0:00 /usr/local/mysql/libexec/mysqld --basedir=/usr/local/mysql --datadir=/usr/local
root 18954 18688 0 23:23:19 pts/1 0:00 mysqladmin -uroot -p shutdown
root 18827 18688 0 23:14:36 pts/1 0:00 /bin/sh ./safe_mysqld
Any attempt to issue "kill" commands for these running processes results in no result. The processes continued to run.
Issued "
Code:
killall 9
Moved into libexec directory
Issued "
Code:
mysqld
Resulted in...
Code:
Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
040216 23:40:35 Aborting
040216 23:40:35 mysqld: Shutdown Complete
Issued
Code:
safe_mysqld --datadir=/usr/local/mysql/var
Code:
Starting mysqld daemon with databases from /usr/local/mysql/var
Code:
[1]+ ... Stopped safe_mysqld")
Killed open MySQL processess
Issued
Code:
safe_mysqld --skip-grant-tables
Code:
Starting mysqld daemon with databases from /usr/local/mysql/var
Code:
[1]+ ... Stopped safe_mysqld
BUT!!!!
Websites that I have that depend on mysql work! Please... can someone give me a clue? Shed some light on this for me?