1.MYSQL登陆报错
[Oracle@bys2 mysqlogg]$ mysql -u root -p
Enter password:
ERROR 1045 (28000): Access denied for user "root"@"localhost" (using password: YES)
此时使用 mysql -u root 即不使用密码可以登陆。
重改密码:使用root用户操作
# /etc/init.d/mysql stop
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
# mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD("newpassword") where USER="root";
mysql> FLUSH PRIVILEGES; ---刷新数据库中数据。
mysql> quit
# /etc/init.d/mysqld restart
此时就可以使用密码登陆了。
# mysql -u root -p
Enter password:
mysql>
2.OGG中登陆MYSQL报错解决
GGSCI (bys2.oel.com) 2> dblogin sourcedb oggtest,userid root
Password:
2013-08-30 12:03:14 WARNING OGG-00769 MySQL Login failed: . SQL error (2002). Can"t connect to local MySQL server through socket "/tmp/mysql.sock" (2).
ERROR: Failed to connect to MySQL database engine for HOST localhost, DATABASE , USER root, PORT 3306.
GGSCI (bys2.oel.com) 3> exit
[oracle@bys2 mysqlogg]$ su -
Password:
[root@bys2 ~]# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
[root@bys2 ~]# exit
logout
[oracle@bys2 mysqlogg]$ ./ggsci
Oracle GoldenGate Command Interpreter for MySQL
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230
Linux, x86, 32bit (optimized), MySQL Enterprise on Apr 23 2012 04:29:30
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
GGSCI (bys2.oel.com) 1> dblogin sourcedb oggtest,userid root
Password:
Successfully logged into database.
推荐阅读:两台Oracle之间配置OGG-未配置同步DDL http://www.linuxidc.com/Linux/2013-10/92015.htmOGG配置DML单向复制一例及错误分析 http://www.linuxidc.com/Linux/2013-10/90917.htmOGG-00446 ERROR: Could not find archived log http://www.linuxidc.com/Linux/2012-09/70055.htmOracle Linux 5.7 部署OGG v11 oracle to oracle http://www.linuxidc.com/Linux/2012-11/73381.htmGoldenGate源端意外宕机,导致OGG-01031报错 http://www.linuxidc.com/Linux/2012-07/65797.htm两台Oracle之间配置OGG-未配置同步DDL使用SPFILE将所配置的初始化参数重置为系统默认值相关资讯 OGG 配置OGG
- OGG升级运行ggsic报Unable to find (今 11:03)
- Oracle GoldenGate(OGG)诊断 (05/13/2015 19:36:04)
- OGG rep运行慢的分析步骤 (02/09/2015 19:11:06)
| - OGG目的端的checkpoint table被 (06/12/2015 19:35:43)
- 停止OGG e进程时遭遇长事务分析 (04/04/2015 19:33:22)
- OGG的extract进程checkpoint时间点 (02/09/2015 10:27:21)
|
本文评论 查看全部评论 (0)