Forums

Home » Liferay Portal » česky a slovensky

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
peto cee
php portlet sa nepripoji k vzdialenej MySQL db
November 15, 2011 2:52 AM
Answer

peto cee

Rank: New Member

Posts: 2

Join Date: September 14, 2010

Recent Posts

dobry den
neviete mi poradit preco sa php portlet stale pripaja len k localhostu a nechce sa pripjit na vzdialeny server aj ked mam nastavany v mysql_connect('remote_server', 'user', 'pass'); a vypisuje nasledovnu chybovu hlasku..


 /usr/liferay/liferay-portal-6.0.6/tomcat-6.0.29/webapps/calevent_v1/index.php:26: Warning: A link to the server could not be established. url=jdbc:mysql://localhost:3306/?characterEncoding=ISO8859_1&useOldAliasMetadataBehavior=true driver=com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource java.sql.SQLException: Access denied for user ''@'localhost' (using password: NO) [mysql_query] /usr/liferay/liferay-portal-6.0.6/tomcat-6.0.29/webapps/calevent_v1/index.php:26: Warning: Connection is not available [mysql_query] /usr/liferay/liferay-portal-6.0.6/tomcat-6.0.29/webapps/calevent_v1/index.php:27: Warning: '' of type 'Boolean' is an unexpected argument, expected MysqliResult [mysql_fetch_row]

dakujem za radu Peto..
Tomas Polesovsky
RE: php portlet sa nepripoji k vzdialenej MySQL db
November 16, 2011 1:35 AM
Answer

Tomas Polesovsky

LIFERAY STAFF

Rank: Liferay Master

Posts: 564

Join Date: February 13, 2009

Recent Posts

Dobry den.

Jestli si dobre vzpominam, tak v nejake starsi 6ce se slo pripojit snad pouze na MySQL databazi, kterou pouzival sam liferay, na jinou to nefungovalo.

Asi jde ale nadefinovat novy resource v tomcatu a potom vyuzivat PDO.

-- tom