Re: RedHat 8, how to start mysql?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave Sherman wrote:
On Fri, 2003-01-10 at 10:44, filsuf@softhome.net wrote:
Daily, Shane, CTR wrote:
What happens when you try it like this:
service mysqld start
----
Thanks Shane. It works, but with 'serviceconf' command that will open the
UI, then we can click on mysqld and start it like that.
But it's really not nice. I guess there must be a way to start it normally
from the command line.

As root, run 'chkconfig --list|grep mysqld' and look at the output. It
should be something like this:
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Since you are running X Windows, you need to make sure that the 5 option
shows 'on', not 'off'. If it says 'on', then you've got some sort of
error preventing mysqld from running on boot. You will need to check the
system logs and see what is happening. If it says 'off', then you can
change it to 'on' by doing this:
chkconfig mysqld on
Running the list command (above) should now show the status changed to
'on' for runlevel 5, and probably the others as well.

I got this:
----------------------------------------
After reading your message:
[root@localhost jd]# su -
then trying it:
[root@localhost root]# chkconfig --list | grep mysqld
mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off
and fixing it:
[root@localhost root]# chkconfig mysqld on
then I got:
[root@localhost root]# chkconfig --list | grep mysqld
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
killing Shane's previous advice:
[root@localhost root]# mysqladmin shutdown
Restarting it normally:
[root@localhost root]# safe_mysqld &
[1] 3743
[root@localhost root]# Starting mysqld daemon with databases from /var/lib/mysql
--stucked, so I ctrl-C-- but after retry it again:
[root@localhost root]# safe_mysqld &
[2] 3771
[root@localhost root]# A mysqld process already exists
It's there...:)
--I check out the ps & got these lines:
3743 pts/0 00:00:00 safe_mysqld
3766 pts/0 00:00:00 mysqld
3797 pts/0 00:00:00 ps
--Trying to run it:
[root@localhost root]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 3.23.52
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
It works:
mysql> \q
Bye
And a last message from my prompt for you:
[root@localhost root]# thankyou

:)
Thanks Dave!

JD


--
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux