HI there all,
I am using SuSE 9.1 and installed php, mysql and apache2 using YAST during installation. Once done, I couldn't start MySQL as zillions of others... so far all I know is it is some permission error. Now, to issue the following command...
chown -R root:mysql /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql/data
I need to have a directory named mysql inside /usr/local.. right? Amazingly, YAST doesn't create this folder... BUMMER!!!
I tried to edit the runlevel editor (inside YAST) and tried to turn on mysql daemon during startup. But, it fails for some "Unexpected error" .. BUMMER AGAIN!!!!
I just can't start my MySQL daemon running.. i have a user mysql, group mysql.. and it was working with SuSE 9.0 .. I know it will work if I remove MySQL using YAST and install a fresh copy from Taball wiht --prefix = /usr/local/mysql option...
but, HOW CAN I USE YAST to fix this??? where in the world is my MySQL folder? there is no folder named scripts... to issue the following command...
$ scripts/mysql_install_db
now, this file is in /var/lib .. wierd .. huh??
Any help??????????????
All I want is to start mysql daemon from user mysql ...
--------------
this is what is happenning now...
(as root)
$ mysql_install_db --user=mysql
indium:/usr/bin # mysql_install_db --user=mysql
Installing all prepared tables
040530 3:54:02 /usr/sbin/mysqld: Shutdown Complete
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h indium.galaxy password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at
https://order.mysql.com
### SO, to start the server, as mysql, i typed ..
$exit
$mysqld_safe --user=mysql &
it spits out the following...
[1] 11052
indium:/usr/bin # Starting mysqld daemon with databases from /var/lib/mysql
040530 03:56:12 mysqld ended
$
thats all about it... now, if I assume that this /var/lib/mysql is /usr/local/mysql directory, then I have another problem. /var/lib is not user accessible. Is it?? and there is no /data/ folder inside this /var/lib/mysql folder.
ANY HELP????????????
I am THIIIIIIIIIIIIIIIIS close to give up on YAST ...