Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Difficulty getting MySQL running

Featured Replies

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

  • Author
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.

  • Author

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.

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.