Cita:
ahora lo que yo hice fue esto:INSTALLATION :
==============
STEP I.
EXTRACT FILE "shop.zip"
STEP II.
CHANGE THE CONFIGURATION
ON FILEs "config.php"
STEP III.
THEN, ... JUST DUMP SQL QUERY
ON FILEs "shop.sql"
INTO YOUR MYSQLADMIN
note :
this SQL file includes the available record,
but if you want to remove all the items on table
just edit that "shop.sql" file, by removing "INSERT" command line
STEP IV.
UPLOAD ALL THOSE FILES, THEN ...
==============
STEP I.
EXTRACT FILE "shop.zip"
STEP II.
CHANGE THE CONFIGURATION
ON FILEs "config.php"
STEP III.
THEN, ... JUST DUMP SQL QUERY
ON FILEs "shop.sql"
INTO YOUR MYSQLADMIN
note :
this SQL file includes the available record,
but if you want to remove all the items on table
just edit that "shop.sql" file, by removing "INSERT" command line
STEP IV.
UPLOAD ALL THOSE FILES, THEN ...
Código PHP:
// *** DATABASE CONFIGURATION ***
$db_serv="mysql.webcindario.com";
$db_dbas="melf";
$db_user="melf";
$db_pass="*******";
$conn=mysql_connect($db_serv,$db_user,$db_pass) or die ("can't connect to server");
@mysql_select_db($db_dbas,$conn) or die ("can't select database");
// *** DEFAULT CURRENCY FOR ORDER FORM
$defcurr=@mysql_result(@mysql_query("select curr_name from shop_curr where def='y'"),0,0);
// *** DEFAULT EMAIL for receiving order from customer
$mailsender="[email protected]";
?>
Cita:
porque me da esete error:DATOS CONEXION MYSQL
Servidor: mysql.webcindario.com
DB: melf
Usuario: melf
Contraseña: ******
ESTADISTICAS MYSQL
Tablas: 0 tablas(s)
Tamaño: 0 bytes
Indices: 0 bytes
Actualizado: 21/Jul/2004 15:22 GMT+1
Servidor: mysql.webcindario.com
DB: melf
Usuario: melf
Contraseña: ******
ESTADISTICAS MYSQL
Tablas: 0 tablas(s)
Tamaño: 0 bytes
Indices: 0 bytes
Actualizado: 21/Jul/2004 15:22 GMT+1
Cita:
Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/webcindario/melf/recomendado/config.php on line 9
can't connect to server
can't connect to server