如何訪問liferays數據庫

[英]How do I access liferays database


I need to access my local liferays database via sql. How do I open a sql command prompt to this database?

我需要通過sql訪問我的本地生命數據庫。如何打開sql命令提示符到此數據庫?

4 个解决方案

#1


3  

Start to use a custom database. Having all in a let's say Mysql database allows you to use all tools available for browsing that database. I think there exists many good tools for Mysql and that way you'll get what you want - easily and without much pain!

開始使用自定義數據庫。簡而言之,Mysql數據庫允許您使用所有可用於瀏覽該數據庫的工具。我認為Mysql存在許多好的工具,這樣你就可以輕松地獲得你想要的東西 - 沒有多少痛苦!

#2


3  

I'll describe MySQL database installation.

我將描述MySQL數據庫安裝。

First of all, you should download that database from official website :

首先,您應該從官方網站下載該數據庫:

http://dev.mysql.com/downloads/

Than you should create (or change the existing one) file "proper-ext.properties" in your liferay folder. Delete all text in that file and paste this:

比你應該在liferay文件夾中創建(或更改現有的)文件“proper-ext.properties”。刪除該文件中的所有文本並粘貼:

jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=admin

Also you must create new user (root, admin) and new database and name it "lportal" (create database lportal).

您還必須創建新用戶(root,admin)和新數據庫,並將其命名為“lportal”(創建數據庫lportal)。

After that, you should open you command line and enter mysqld --console. Then you should open another one command line and enter mysql -u root -p.

之后,您應該打開命令行並輸入mysqld --console。然后你應該打開另一個命令行並輸入mysql -u root -p。

Good luck!

#3


2  

Default a HSQL datbase is used (http://hsqldb.org/) (maybe there is aclient to connect to it) Data is store in $LIFERAY_HOME\data\hsql If you want a different db checkout: http://www.liferay.com/community/wiki/-/wiki/Main/Database+Portal+Properties

默認使用HSQL數據庫(http://hsqldb.org/)(可能有連接它的用戶)數據存儲在$ LIFERAY_HOME \ data \ hsql中如果你想要一個不同的數據庫結賬:http:// www。 liferay.com/community/wiki/-/wiki/Main/Database+Portal+Properties

#4


2  

It's offsite link but it helped me to achieve what I and you wanted, it's a guide to use SquirrelSQL Client to browse this DB.

它是異地鏈接,但它幫助我實現了我和你想要的東西,它是使用SquirrelSQL Client瀏覽這個數據庫的指南。


注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2011/07/25/7250e16ef84b0c9a463cd211854a505c.html



 
粤ICP备14056181号  © 2014-2021 ITdaan.com