Dear Amar,
make sure to install the databases mysql and test. This is usually done
by a script called mysql_install_db. You can find help about this topic
in http://www.mysql.com/doc/m/y/mysql_install_db.html
Regards,
--
Stefan Hinz
Geschäftsführer / CEO iConnect e-commerce solutions GmbH
# www.js-webShop.com www.iConnect.de
# Gustav-Meyer-Allee 25, 13355 Berlin
# Tel: +49-30-46307-382 Fax: +49-30-46307-388
----- Original Message -----
From: "Amar Msaid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 08, 2001 4:37 PM
Subject: connection a un serveur Mysql
J'ai installe un serveur apache, un serveur Mysql et PHP4
sur un serveur Linux Redhat 7.0 ayant pour adresse IP
192.168.1.2 , que j'utilise aussi comme client. j'ai ecrit un
script PHP4 dans lequel je me connecte au serveur
Mysql
$db=mysql_connect('localhost', 'Moncpt', 'Monpasswd');
je recois le message suivant:
Mysql Connection failed: Can't connect to Mysql Server through socket
'/tmp/mysql.sock'
j'ai change l'instruction par
$db=mysql_connect('192.168.1.2', 'Moncpt', 'Monpasswd');
je recois le message
host '192.168.1.2' is not allowed to connect to this Mysql server.
par contre a partir du shell
si je lance mysql -hlocalhost -uMoncpte -pMonpasswd je me connect au
serveur Mysql
si je lance mysql -h192.168.1.2 -uMoncpte -pMonpasswd je recois le
message host '192.168.1.2' is not allowed to connect to this Mysql
server.
Quel est le probleme ? Merci.
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php