フォーラム

ホーム » Liferay Portal » česky a slovensky

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
peto cee
php portlet sa nepripoji k vzdialenej MySQL db
2011/11/15 2:52
答え

peto cee

ランク: New Member

投稿: 2

参加年月日: 2010/09/14

最近の投稿

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
2011/11/16 1:35
答え

Tomas Polesovsky

LIFERAY STAFF

ランク: Liferay Master

投稿: 586

参加年月日: 2009/02/13

最近の投稿

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