I have just done a, almost, default server installation of Redhat 7.3. I tried installing it once with the default server settings and because the machine I am using is very low spec it crashed on install. After that I did a custom install and pretty much left everything as it was, except I removed a couple of large components like Python, which I knew I wouldn't need and installed MySQL instead of postgres. (Interesting that MySQL wasn't selected for a default server settin but that is off topic here).
Anyway, I followed the instructions in the MySQL manual and ran...
[root@mymachine /] mysql_install_db
that installed all the various tables, no probs, and shows several different messages including...
"You can start MySQL daemon with
cd /usr ; /usr/bin/safe_mysqld &"
I figure that that means change directory to "/usr" and then go "/usr/bin/safe_mysqld &"
If I do that I get a message..
"Starting MySQL daemon with databases from /var/lib/mysql
031006 08:30:00 mysql ended"
then if I try to run "mysql" I get the message..
"Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
+ Done /usr/bin/safe_mysqld"
So, I guess this means MySQL is not running. I am a rank newbie (or perhaps I am just rank) so sorry if this is elementary and I have missed something really obvious.
thx in advance
try running this: /etc/rc.d/init.d/mysqld start
if that works and you want MySQL to start at boot then do the following:
chkconfig --add mysqld
chkconfig --level 35 mysqld on
That worked a treat.
Pardon my ignorance but what did "/etc/rc.d/init.d/mysqld start" actually do?
Starting the mysql-database, all start and stop scripts for all services are located udner /etc/init.d in Redhat.