Jump to content

Recommended Posts

Posted (edited)

I'm really lost here.However i have old forum from old hosting and use them for a last 3 years i would to start on a new hosting from fresh installed forum.

But i got error during installation:

 

>Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /home/proxybl/public_html/pb-forum/db/mysql4.php on line 330

Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in /home/proxybl/public_html/pb-forum/db/mysql4.php on line 331
phpBB : Critical Error 

Could not connect to the database

 

Try almost everything and still do not what i did mistake.

As first i created database and then add username/password.

So it should be simple then just fill in by phpBB:

 

Database Type: Mysql 4.x

 

 

 

Database Server Hostname / DSN: localhost

Your Database Name: (name of database that i chosed)

Database Username: (username that i chosed)

Database Password: (password that i chose for username above)

Prefix for tables in database : and prefix is standard

 

 

but everytime i geting error above!

Edited by Make
Posted

Make sure you're using the correct database name and database username.

Unless you're using your cpanel username and password, they should be in the form of yourcpanelusername_databasename and yourcpanelusername_databaseusername.

Posted

I know it and i try but without any luck.

DNS/IP info is still not changed but i think it is not problem.

Actually what i did again is copy exactly same database name and database user as it stated there.

So through cpanel/Mysql under Databases: i just copied databasename (and i see that user chosed under is added to that database)

and under user i copied exactly name as it stated there.

Then i copy password that i chosed for username above.And still error.

Really lost!It should be and must be simple but...

Posted

I've solved problem.Thankf for your help.I did again a stupid mistake.Forget to add username really to that db.

Oh it seems that i miss stronger coffee this afternoon.

  • 3 weeks later...
Posted

Hey there,

I am having the exact same error as above. I have created the database and added a user, and am using the cpanelusername_databasestuff for the required fields as advised above. I feel like everything is right, but it still isn't working. So I opened a help desk ticket and received a response. My answer from them was "Your installation is not complete." Uhhh... that's the problem, not the solution!

 

Is there anything else I don't know? I'm a total newbie at mySQL stuff, so... help? Maybe there's a restriction with the number of letters that your username has to be, or you can't have upper and lowercase numbers, or maybe I was supposed to set something else up that I missed in the instructions besides just a database and a user for that database?

Thanks for any help you can provide!

Posted

Hey thanks very very much!

In case anyone else has the problem I had -- I was confused by the interface, I didn't realize you had to do one more step after creating a user account to add that user to the database. I can see it now, of course :wallbash:

Thanks for your help and for the prompt reply!

  • 1 year later...
Posted

I have had the exact same problem as everyone else but hey... i haven't made the same mistake 'cause i've added ALL privilages to the user.

 

please, if anyone can help it would be greatly apreciated

 

PS. the techies at my dad's work have been unable to fix the problem. Would anyone sugest re-installing it on my domain. (i'd really prefer not to)

Posted

Welcome to the forum :)

 

 

Just to sure, here is my check list

-- databse connect ----

 

Be sure that in MySql you

 

1 - created the database

2 - created a user

3 -added the user to the database (go back to MySql and find the Add user

select the user and database, and then Add user to database)

 

 

Then to connect to the database in a script use:

 

host: localhost

database: yourCpanelName_databaseName

user: yourCpanelName_databaseUser

password: mypassword

 

* Note password is just as the password,

do not add the CpanelName to it.

 

---------------------------

Posted (edited)
host: localhost

database: yourCpanelName_databaseName

user: yourCpanelName_databaseUser

password: mypassword

---------------------------

 

hey how do i know what the control panel name is and what to type in. And my database is a "binary", should it be?

Thank You

Edited by 100595
Posted

Sorry cant answer the database question since I don't use phpbb but the cpanelname is the same you login to your cpanel with and it is in your welcome letter.

Posted (edited)
Sorry cant answer the database question since I don't use phpbb but the cpanelname is the same you login to your cpanel with and it is in your welcome letter.

 

So when I log into phpMyAdmin and it comes up with: "welcome..."?

It comes up with; '6.7.2.3 pl-1' or something....

Thank you, again

Edited by 100595
Posted

No. Thomas is referring to the cPanel username that you use to log in to the back end of your domain to get to your site's control panel (where you manage e-mail, upload files, etc.)

 

The welcome letter Thomas referrs to is the welcome letter you received from TCH when you began hosting here.

 

All of the above assumes that you are a TCH client and you are trying to host your phpBB forum on a TCH server.

 

Welcome to the TCH family forum!

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...