配置OGG到MYSQL複製時登陸MYSQL報錯解決
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@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.
相關文章
- mysql登陸報錯mysql: unknown variable 'basedir=MySql
- 解決csdn登陸複製的問題
- 新搭建的mysql登陸報錯mysql Segmentation fault (core dumped)MySqlSegmentation
- OGG 12c mysql複製到oracle部署方案MySqlOracle
- mysql複製報錯案例處理MySql
- mysql master-slave複製錯誤[解決事例]MySqlAST
- mysql主從複製配置與問題解決MySql
- 半同步複製報錯mysql8.0.25MySql
- mysql複製--主從複製配置MySql
- MySQL命令列登陸,遠端登陸MySQLMySql命令列
- mysql密碼遺忘和登陸報錯問題MySql密碼
- 配置ogg異構oracle到mysqlOracleMySql
- MySQL 5.7.9多源複製報錯修復MySql
- mysql ab主從複製出錯及解決過程MySql
- OGG_mysql 12c複製到OGG_oracle 11g部署方案MySqlOracle
- MySql 主從複製配置MySql
- MySQL主從複製配置MySql
- MySQL 8 複製(五)——配置GTID複製MySql
- 解決mysql使用GTID主從複製錯誤問題MySql
- 【MySql】複製出現Slave_SQL_Running: No 錯誤解決MySql
- MySQL 網路導致的複製報錯案例MySql
- MySQL5.7半同步複製報錯案例分析MySql
- 從 MySQL 到 ClickHouse 實時複製與實現MySql
- OGG同步複製時與相容觸發器解決方法觸發器
- mysql replication複製錯誤(zt)MySql
- MySQL 8 複製(九)——組複製聯機配置MySql
- mysql5.5.20複製配置MySql
- MYSQL主從複製配置(整理)MySql
- MySQL複製3--配置MasterMySqlAST
- MySQL 5.7 延遲複製配置MySql
- redhat 5.5 配置 mysql AB複製RedhatMySql
- 解決Mysql中只能通過localhost登陸不能通過ip登陸的問題MySqllocalhost
- MySQL主從複製延遲解決方案MySql
- MYSQL主從複製製作配置方案MySql
- 實現Mysql延時複製MySql
- oracle時間格式記錄異常導致OGG複製程式報錯Oracle
- mysql登入報錯提示:ERROR 1045 (28000)的解決方法MySqlError
- mysql主主複製(雙主複製)配置步驟MySql