PDA

View Full Version : How would I know if MySQL is installed in my server?


certify
Sat 4th Aug '01, 3:45am
What is the command line to check if MySQL is installed in my server?

WEBDosser
Sat 4th Aug '01, 4:15am
copy this code.. and save as phptest.php then upload to your server and call it from your browser.

<?php
phpinfo();
?>

certify
Sat 4th Aug '01, 4:36am
Thanks.

This is the result I've got. It's says there it is enable but when I issue any mysql commands ....(see second quote)


mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.32
MYSQL_INCLUDE
MYSQL_LFLAGS
MYSQL_LIBS


This happens.. How do i fix this?


[root@cheng bin]# mysql -v
bash: mysql: command not found

WEBDosser
Sat 4th Aug '01, 9:16am
You need to have a username and password to access your database. Try getting this program and installing it..

http://www.phpwizard.net/projects/phpMyAdmin/

There is a readme in there to help you set it up..

johno
Tue 14th Aug '01, 3:05pm
sounds like you have the MySQL server installed but not the MySQL client -- or the client is in a directory not in your PATH (like /usr/local/bin/mysql maybe)

try `find / -name "mysql"`

if you don't find the mysql program, download the client package off www.mysql.com