Data base |
[eluser]Alexandre E. Souza (Joker)[/eluser]
How Can I connect my aplication in the database on-line?
[eluser]TWP Marketing[/eluser]
Read the User Guide under the Database Class http://ellislab.com/codeigniter/user-gui...cting.html
[eluser]Professor Doidão[/eluser]
Can I do using this? $db['default']['hostname'] = "ip_serv"; $db['default']['username'] = "root"; $db['default']['password'] = ""; $db['default']['database'] = "database_name"; $db['default']['dbdriver'] = "mysql"; $db['default']['dbprefix'] = ""; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] = FALSE; $db['default']['cache_on'] = FALSE; $db['default']['cachedir'] = ""; $db['default']['char_set'] = "utf8"; $db['default']['dbcollat'] = "utf8_general_ci"; $db['default']['swap_pre'] = ""; $db['default']['autoinit'] = TRUE; $db['default']['stricton'] = FALSE;
[eluser]TWP Marketing[/eluser]
[quote author="Professor Doidão" date="1342712607"]Can I do using this? Code: $db['default']['hostname'] = "ip_serv"; It may work, however I don't think using 'root' as the username is a good idea. You SHOULD use a password on your database. Is the name of your database really 'database_name'? Finally, this is someone elses thread, so let's not continue this here. Start a new thread if you have more questions.
[eluser]InsiteFX[/eluser]
The username and password has to match what you told it when you installed MySQL Sever. Also if your running on a localhost then the hostname would be localhost.
[eluser]Professor Doidão[/eluser]
I made this on-line and work right so I made download of archive adn my computer e don't works
[eluser]TWP Marketing[/eluser]
[quote author="Alexandre E. Souza (Joker)" date="1342972666"]have you skype?[/quote] No, sorry. Per my original reply: Read the User Guide under the Database Class http://ellislab.com/codeigniter/user-gui...cting.html |
Welcome Guest, Not a member yet? Register Sign In |