robot_chicken7
06-12-2008, 03:17 PM
I'm on codegirl.com doing a tutorial for creating a database:
http://codegrrl.com/tutorials/part-1-create-your-database
The errors I'm getting on the page are (I deleted the location of my files except the ending.):
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /php_blog.php on line 2
Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /php_blog.php on line 3
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /php_blog.php on line 3
Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in php_blog.php on line 12
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /php_blog.php on line 12
Can't create the table 'php_blog' in the database.
CREATE TABLE php_blog ( id int(20) NOT NULL auto_increment, timestamp int(20) NOT NULL, title varchar(255) NOT NULL, entry longtext NOT NULL, PRIMARY KEY (id) )
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Warning: mysql_close(): no MySQL-Link resource supplied in /php_blog.php on line 18
If anyone can help that would be greatly appreciated!
http://codegrrl.com/tutorials/part-1-create-your-database
The errors I'm getting on the page are (I deleted the location of my files except the ending.):
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /php_blog.php on line 2
Warning: mysql_select_db() [function.mysql-select-db]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /php_blog.php on line 3
Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /php_blog.php on line 3
Warning: mysql_query() [function.mysql-query]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in php_blog.php on line 12
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /php_blog.php on line 12
Can't create the table 'php_blog' in the database.
CREATE TABLE php_blog ( id int(20) NOT NULL auto_increment, timestamp int(20) NOT NULL, title varchar(255) NOT NULL, entry longtext NOT NULL, PRIMARY KEY (id) )
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Warning: mysql_close(): no MySQL-Link resource supplied in /php_blog.php on line 18
If anyone can help that would be greatly appreciated!