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

Re: [cobalt-users] mysql



>I am having trouble getting php to connect to the database server.  I
>know mysql is loaded and php is working.  Is there a simple test to
>check that mysql is working? What is it?  Where do I load database files
>so that they can be accessed.

Type "mysql" (without quotes) when connected via telnet/ssh.
You should be greeted with something like this:

Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 3.22.32

Type 'help' for help.

Your prompt should be "mysql>"

Then, type "quit" to exit mysql and go back to the shell.
If all this works, you have mySQL installed.
As a side note, I would HIGHLY RECOMMEND you learn to use mySQL through
command-line (telnet/ssh) before you start using it with PHP. You will
understand things much better, and save yourself much grief.
A good mySQL tutorial is at:
http://www.mysql.com/documentation/mysql/bychapter/
Paul