Geekzone: technology news, blogs, forums
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.

139 posts

Master Geek
+1 received by user: 6

Topic # 126785 19-Jul-2013 16:28
Send private message

I've looked for a specific area to put this and can't find one so sorry if this is incorrect. Mod plz move if necessary.
So, I've made a website with php pages and a mysql dbase. Using Xampp on my PC all is good. I have another site already running on the net. I wanted to test it online and so I made a folder and dumped all my local files into that with Fzilla. Then I wrote the address into the browswer and got what i expect - a dbase error. Here it is.....
Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user 'root'@'localhost' (using password: NO) in /home/masterto/public_html/aNewStite/www/classes/dbClass.php on line 9
Error connecting to the database

This is my config.php content:
define('DBHOST', 'localhost');
define('DBUSER', 'root');
define('DBPASS', '');
define('DBNAME', 'banana');

I'm trying to leap from html to php but I can't get my head around this dbase setting.

Can anyone advise please - thank you

Create new topic
72 posts

Master Geek
+1 received by user: 5


  Reply # 862293 19-Jul-2013 17:46
Send private message

Your live MySQL connection information will be different than your local environment. You will need to set up a database on your production server and set a secure user password specific for each and every database/site you set


Pm me if you want more help.

Create new topic

Twitter »

Follow us to receive Twitter updates when new discussions are posted in our forums:

Follow us to receive Twitter updates when news items and blogs are posted in our frontpage:

Follow us to receive Twitter updates when tech item prices are listed in our price comparison site:

Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.

Geekzone Live »

Our community of supporters help make Geekzone possible. Click the button below to join them.

Support Geezone on PressPatron

Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.

Alternatively, you can receive a daily email with Geekzone updates.