Question:
Resin Quercus mysql_connect() to PHP ??
UNNAME
2007-01-02 12:12:25 UTC
I was ready Modify the "resin.conf",
Copied the the mysql-connector-java-5.0.4-bin.jar into \lib.
and add a database element to WEB-INF\web.xml !!

and the last now !!
What the element i should be fill in my connect.php ??
$connection = mysql_connect();
what should i fill inside the mysql_connect() ??

i'm tried many times and always show the error as:
*******************************************************************************
/D:/resin-pro-3.1.0/webapps/ROOT/connect.php:5: Warning: A link to the server could not be established. url=jdbc:mysql://127.0.0.1:3306/ driver=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource java.sql.SQLException: Unknown initial character set index '48' received from server. Initial client character set can be forced via the 'characterEncoding' property. [mysql_connect] Could not connect
*******************************************************************************

May anyone tell me how to solve the problem ??
Three answers:
premise
2007-01-02 12:14:37 UTC
mysql_connect('localhost', 'user', 'password');



I would highly suggest using php.net as a resource. They have the parameters for all built in functions :)
Julio M
2007-01-02 12:28:42 UTC
why not use the native mysql_connect function? I don't see why you're configuring a mysql connector with java.
2007-01-02 12:13:55 UTC
i don't speak computer nerd.... sorry...


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...