Where is Mysql?
I have a powerbook G4 with operating system MACOSX Tiger (Version 10.4.5).
Apache is already default in the system; I also activated php, already present in the system, following some instructions found on the Internet to modify file config.php of Apache and everything was ok....the last problem: Mysql!!
The phpinfo() page tells me I have MySQL v4.1.13a as follows:
enabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.13a
MYSQL MODULETYPE external
MYSQL_SOCKET /var/mysql/mysql.sock
MYSQL_INCLUDE -I/usr/include/mysql
MYSQL_LIBS -L/usr/lib/mysql -lmysqlclient
My problem is that php thinks I have Mysql installed but I can't find it. I have looked for it in all folders visible or hidden in the system (spending hours..)but I can find nothing of mysql(while I have easily found the folder of php).
I tried to bypass the problem making a script in php to create a trial database
<?php
$db=mysql_connect("localhost", "", "");
$database = 'devtest';
$istruzione= mysql createdb( $database, $db);
mysql_query($istruzione);
?>
When I open browser and I dial: localhost/proveweb/create_db.php
it appears:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (2) in /Library/WebServer/Documents/proveweb/create_db.php on line 10
Fatal error: Call to undefined function: mysql createdb() in/Library/WebServer/Documents/proveweb/create_db.php on line 12
Is there an error with script or isn't Mysql there?
Can anybody help me to solve this problem?
Thank you for any suggestions
santinac
powerbook G4, Mac OS X (10.4.5)