cubanallstar83 Posted October 3, 2003 Share Posted October 3, 2003 Ive recently installed mysql-4.0.15 and have run into a couple of problems. The first of which is with creating new databases Ive set up a user account and log in fine but when I try and create a new db I get: Error 1044: Access denied for user \'lxf@localhost\' to database \'new\' I cant work out why as when I first ran the install I was able to create two databases Have I dont something along the way that I shouldnt have? Its obviously something to do with permisions but ive plugged away all week and havnt got anywhere! The second problem lies in testing the connection with php. Im using the script: <?php $connection=mysql_connect (\"host\", \"user\", \"pass\") or die (\"connectError:\".mysql_error()); ?> If I access this on my server I get the response Warning: mysql_connect(): Can\'t connect to local MySQL server through socket \'/tmp/mysql.sock\' (2) in /var/www/html/php/oct02tut.php on line 3 ConnectError:Can\'t connect to local MySQL server through socket \'/tmp/mysql.sock\' (2) If I run a braindump I get MYSQL_SOCKET /tmp/mysql.sock Thing is though my socket is located in /var/lib/mysql/mysql.sock !!?? Regards Quote Link to comment https://forums.phpfreaks.com/topic/1106-mysql-post-installation-niggles/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.