LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-16-2003, 07:39 PM   #61
edhan
Member
 
Registered: Sep 2003
Location: Singapore
Distribution: Redhat 8.0
Posts: 93

Original Poster
Rep: Reputation: 15

Quote:
Originally posted by daveo
I'm not sure what you trying to mention, but do you mean to run phpmyadmin as mysql@localhost?

Or do you mean from a terminal login? If that's the case just do:
# mysql -u mysql -p and typ the passwd from the mysql user
Yes. I meant terminal login. Tried it and it works. Now I wonder if the cause is due to the domain name as I have been trying it under localhost to do the posting. Does it has any differences between local and domain name?

Btw, do you know how I can set the MySQL to run during boot-up ?

Regards
Edward Han

Last edited by edhan; 09-16-2003 at 07:40 PM.
 
Old 09-17-2003, 03:10 AM   #62
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Quote:
Originally posted by edhan
Yes. I meant terminal login. Tried it and it works. Now I wonder if the cause is due to the domain name as I have been trying it under localhost to do the posting. Does it has any differences between local and domain name?

Btw, do you know how I can set the MySQL to run during boot-up ?

Regards
Edward Han
* Make sure with phpmyadmin that mysql accept connections from a localhost, so if you define 127.0.0.1 in the php files, then a entry should exists in the privileges part like:

mysql localhost Yes SELECT, INSERT, UPDATE, etc, etc

* You might be able to add mysql to one of your runlevels with the tool chkconfig, example:

chkconfig --level 345 testservices on

Which will start the testservices at runlevel 345 Make sure to read man chkconfig first ...

Hope this helps,
 
Old 09-17-2003, 07:26 AM   #63
edhan
Member
 
Registered: Sep 2003
Location: Singapore
Distribution: Redhat 8.0
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by daveo
* Make sure with phpmyadmin that mysql accept connections from a localhost, so if you define 127.0.0.1 in the php files, then a entry should exists in the privileges part like:

mysql localhost Yes SELECT, INSERT, UPDATE, etc, etc

* You might be able to add mysql to one of your runlevels with the tool chkconfig, example:

chkconfig --level 345 testservices on

Which will start the testservices at runlevel 345 Make sure to read man chkconfig first ...

Hope this helps,
Hi Dave

Finally everything works PERFECT! I have added the command for the apache and mysql in the rc.local so that it will start automatically when the system boots up. I am still unsure how I can add the username mysql instead of root to run the mysql.
Do you have any suggestion?

Thank you for all your help and your patience! Do have a nice day!

Regards
Edward Han
 
Old 09-17-2003, 07:33 AM   #64
daveo
Member
 
Registered: Sep 2003
Location: Holland
Distribution: Gentoo 1.4, Slackware
Posts: 196

Rep: Reputation: 30
Quote:
Originally posted by edhan
Hi Dave

Finally everything works PERFECT! I have added the command for the apache and mysql in the rc.local so that it will start automatically when the system boots up. I am still unsure how I can add the username mysql instead of root to run the mysql.
Do you have any suggestion?

Thank you for all your help and your patience! Do have a nice day!

Regards
Edward Han
Hi Edward!

Yah well anytime ...

* Try the following in your rc.local to start mysql:
mysqld_safe --user mysql (NOTE: make sure that the user exists on your system and has the proper rights on your database files mostly located at /var/mysql or something.)

* If you got any questions in the future drop them in my forum, because you solved this problem and i'm "unwatching" this topic.

Which you all the best and have a nice day to!
 
Old 09-17-2003, 07:49 AM   #65
edhan
Member
 
Registered: Sep 2003
Location: Singapore
Distribution: Redhat 8.0
Posts: 93

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by daveo
Hi Edward!

Yah well anytime ...

* Try the following in your rc.local to start mysql:
mysqld_safe --user mysql (NOTE: make sure that the user exists on your system and has the proper rights on your database files mostly located at /var/mysql or something.)

* If you got any questions in the future drop them in my forum, because you solved this problem and i'm "unwatching" this topic.

Which you all the best and have a nice day to!
BTW, my database is now READ Only and I can't do any amendment. I have chmod & chgrp as well as chown to mysql. It still can't work with the rights set as 755. Any idea?

Thanks for the tip. I will check to see if it works.

Anyway, in future I will be dropping by your forum. See you.

Regards
Edward Han

Last edited by edhan; 09-17-2003 at 08:38 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse Error, but why? Mistro116@yahoo.com Programming 2 11-13-2005 03:38 PM
in gcc compiler error: parse error before string constsnt cynthia_thomas Linux - Networking 1 10-20-2005 02:29 AM
parse error with bc fisayo Programming 7 08-04-2005 10:23 AM
Parse Error verbatim Programming 3 04-22-2005 10:16 AM
Parse Error in G++ ashwinipahuja Programming 1 04-29-2004 02:47 AM


All times are GMT -5. The time now is 09:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration