add this code to your portal-ext.properties file
lportal
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=root
jdbc.default.password=
replace lportal with your database name
if portal-ext.properties doesn’t exsist then create it at:
[bundle]/tomcat-6.0.29/webapps/ROOT/WEB-INF/classes/portal-ext.properties