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


Yorkshirekid

193 posts

Master Geek
+1 received by user: 10


#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:
<?php
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




[IF YOU DON'T KNOW, YOU DON'T KNOW]


Create new topic
sheldonlendrum
Sheldon
120 posts

Master Geek
+1 received by user: 28

Lifetime subscriber

  #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

Up.



Pm me if you want more help.




Sheldon Lendrum
@SheldonLendrum
http://www.inboxdesign.co.nz/

UFF Speedtest


Create new topic








Geekzone Live »

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



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.