Linux下Glassfish MySQL的配置

  1. 卸载旧版本的mysqllib yum remove mysql-libs;
  2. 安装rpm命令rpm -ivh
  3. 设置新密码SET PASSWORD = PASSWORD(‘xxxxxx’);
  4. 授权远程访问 grant all privileges on *.* to root@’%’ identified by “xxxxxx”;
  5. 添加新用户并授权CREATE USER ‘chaly’@’%’ IDENTIFIED BY ‘xxxxxx’;
    GRANT ALL ON *.* TO ‘chaly’@’%’; flush privileges;
  6. 修改glassfish控制台密码./asadmin change-admin-password.
  7. 启用远程控制管理./asadmin enable-secure-admin
  8. 启动glassfish服务器asadmin start-domain
  9. 关闭服务器./asadmin stop-domain

Leave a Reply

Your email address will not be published. Required fields are marked *