Oct 16, 2005 #1 gchen Programmer Nov 14, 2002 174 US i have a redhat 8.2 box and people told me i should have mySQL in it. is there a way to find out whether my linux has it or not? thanks!
i have a redhat 8.2 box and people told me i should have mySQL in it. is there a way to find out whether my linux has it or not? thanks!
Oct 17, 2005 1 #2 KarveR MIS Dec 14, 1999 2,065 GB type in mysql if you get a cannot connect to ... error, it ay not have been started, so: service mysqld status or service mysqld status If you get a nt found error, it probable isnt installed, try whereis mysql if nothing, you need t install it. ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat. Upvote 0 Downvote
type in mysql if you get a cannot connect to ... error, it ay not have been started, so: service mysqld status or service mysqld status If you get a nt found error, it probable isnt installed, try whereis mysql if nothing, you need t install it. ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat.
Oct 17, 2005 #3 KarveR MIS Dec 14, 1999 2,065 GB whoops, this should have been: service mysqld status or service mysql status the second one doesnt have the D. ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat. Upvote 0 Downvote
whoops, this should have been: service mysqld status or service mysql status the second one doesnt have the D. ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat.
Oct 17, 2005 Thread starter #4 gchen Programmer Nov 14, 2002 174 US thanks for the help.... here is what happen on my server... mysql -> i got below error message "ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)" service mysqld status -> i got this... "mysqld is stopped" service mysql status -> i got this... "mysql: unrecognized service" whereis mysql -> i got... "mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz" so i believe my linux box came with it but it was not "started". so i did below... /sbin/service mysqld restart and it is now up and running. thanks! Upvote 0 Downvote
thanks for the help.... here is what happen on my server... mysql -> i got below error message "ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)" service mysqld status -> i got this... "mysqld is stopped" service mysql status -> i got this... "mysql: unrecognized service" whereis mysql -> i got... "mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz" so i believe my linux box came with it but it was not "started". so i did below... /sbin/service mysqld restart and it is now up and running. thanks!
Oct 17, 2005 #5 KarveR MIS Dec 14, 1999 2,065 GB in which case : man chkconfig read and digest, this will explain how to have mysql start automatically at run time, or if you have webmin installed, point a web broswer at http://your_linuxbox:10000 under services (i think - haven't used in in years) and startup or boot - something like that, you should be able to set it to start at boot. ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat. Upvote 0 Downvote
in which case : man chkconfig read and digest, this will explain how to have mysql start automatically at run time, or if you have webmin installed, point a web broswer at http://your_linuxbox:10000 under services (i think - haven't used in in years) and startup or boot - something like that, you should be able to set it to start at boot. ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat.
Oct 17, 2005 Thread starter #6 gchen Programmer Nov 14, 2002 174 US Great! now that i have mySQL up and running. my next question is where can i get/create users for mySQL connection. thanks! Upvote 0 Downvote
Great! now that i have mySQL up and running. my next question is where can i get/create users for mySQL connection. thanks!
Oct 17, 2005 #7 lgarner IS-IT--Management Jan 26, 2002 2,348 US You grant access to some or all databases and tables. Start here: http://dev.mysql.com/doc/refman/5.0/en/grant.html Upvote 0 Downvote
You grant access to some or all databases and tables. Start here: http://dev.mysql.com/doc/refman/5.0/en/grant.html