Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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 ...
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!
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.
* 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.