hatzopoulos / pampa-j

Automatically exported from code.google.com/p/pampa-j
0 stars 0 forks source link

help me connect to the database #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
#coneccion con el MDB en MySql 
$link = mysql_connect("NombreHost","Usuario","contraseña") 
or die ("no se ha podido conectar"); 

#Seleccion de la base de datos a utilizar 
mysql_select_db("dbprueba") 
or die("Error al tratar de selecccionar esta base"); 

#cierra la base de datos 
mysql_close($link); 
?> 
when I connect to localhost but not when the admin phpmy q if the port is 
using by default is 3007 and yet I can not connect to the database may be 
happening

Original issue reported on code.google.com by sandro...@gmail.com on 20 May 2010 at 3:20

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi, sorry for that stupid question, how and where can I set dbname and the user 
password for MYSQl in it ?

I mean how can I change it from defaults and where, not using ini files ?

BR Wojciech

Original comment by wojciech...@gmail.com on 12 Feb 2011 at 3:41