Welcome Guest, Not a member yet? Register   Sign In
Data base
#1

[eluser]Alexandre E. Souza (Joker)[/eluser]
How Can I connect my aplication in the database on-line?
#2

[eluser]TWP Marketing[/eluser]
Read the User Guide under the Database Class
http://ellislab.com/codeigniter/user-gui...cting.html
#3

[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;
#4

[eluser]TWP Marketing[/eluser]
[quote author="Professor Doidão" date="1342712607"]Can I do using this?
Code:
$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;
[/quote]

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

[eluser]Professor Doidão[/eluser]
I tried just did not work too
#6

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

[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
#8

[eluser]TWP Marketing[/eluser]
What insiteFX said.
#9

[eluser]Alexandre E. Souza (Joker)[/eluser]
have you skype?
#10

[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




Theme © iAndrew 2016 - Forum software by © MyBB