Jump to content
The Uniform Server Community

Difficulty getting MySQL running


Gh0st75
 Share

Recommended Posts

Hello,

 

I recently posted this as a reply to another topic and it was suggested i start a new one. To recap i'm new to Uniform Server and thought it the best choice for my purposes. I'm new to webserving and want to set one up for the sole purpose of running a phpBB for a gaming guild. I've installed the Uniform Server software and followed the instructions. I am able to access my index.html file, as well as the test.php file i created. However i am unable to access my testmysql.php file. It was suggested that the problem might be with the code of my test file. Perhaps someone could recommend a simple test code i can make a file of for testing. I am able to access phpMyadmin without any difficulties, and it currently has the databases "test", "phpmyadmin", "mysql", and the one i created for my forum "phpbb". When i try to run the phpbb install it gives me a database error that says:

 

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'myrouter's ip' (10061) in D:\webserver\phpBB2\db\mysql4.php on line 48

 

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in D:\webserver\phpBB2\db\mysql4.php on line 330

 

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in D:\webserver\phpBB2\db\mysql4.php on line 331

phpBB : Critical Error

 

Could not connect to the database

 

The testmysql.php file give me this error when i try to access it:

 

Parse error: syntax error, unexpected T_DNUMBER in D:\webserver\testmysql.php on line 5

 

Line 5 consists of :

 

mysql_connect("router ip without the quotations");

 

 

Any idea what i'm doin wrong?

 

Thanks

Link to comment
Share on other sites

Your MySQL server should be 'localhost' and not router's ip.

 

Good Luck :lol:

2010[/snapback]

 

I just made that change and now i get this error when i try to install phpbb:

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in D:\webserver\phpBB2\db\mysql4.php on line 48

 

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in D:\webserver\phpBB2\db\mysql4.php on line 330

 

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in D:\webserver\phpBB2\db\mysql4.php on line 331

phpBB : Critical Error

 

Could not connect to the database

 

It's probably something very simple i'm missing, i hate bein dumb at this stuff.

Link to comment
Share on other sites

oh good lord, i just poked around some more looking for something simple i may have overlooked. I had been following the phpbb's support site walkthru for installing phpbb on uniform server and it told me i didn't need to enter a password. So, i didn't enter one. After reading the error a second time and letting it sink in as a possible authorization error and not a code error, i tried to run the phpbb install using a password.....um it worked.

 

Lesson learned, common sense must supercede pre-fab instructions.

 

Thanks for the sounding board and for your help.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...