http://iotn.co.kr 연락처: gilho.kr@gmail.com [ The Japanese government should apologize to Japanese Military Sexual Slavery victim. / 日本政府は日本軍の性的奴隷?牲者に謝罪すべき. ]

사용자

ID:
PW:

INDEX
01.게시판
게시판 [69]
02.File Book
File 자료실 [95]
Site Link [18]
개인폴더 [194]
03.Field Book
Altibase [19]
Tibero [30]
MS-SQL [18]
MySQL [40]
DB2 [79]
ORACLE [2888]
PostgreSQL [103]
기타정보 [150]
운영체제 [577]
04.Q/A Book
Q/A [53]
05.방명록
방명록 [54]
레벨업 [37]
구인/구직 [2]

기념일
Search
LINK
+ 가족 Hompy
+ DNSEver
IOTN :: Work Book :: MySQL

 회원가입

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
최길호 [LIST]   2019-07-25 21:52:07, 조회 : 329

https://downloads.mariadb.org/mariadb/+releases/
mariadb-10.2.25-linux-x86_64.tar.gz gzipped tar file Linux x86_64 458.0 MB

# useradd mysql
# mkdir -p /mariadb/data
# mariadb-10.2.25-linux-x86_64/scripts/mysql_install_db --user=mysql --datadir=/mariadb/data
[svr:root mariadb]# mariadb-10.2.25-linux-x86_64/bin/mysqld_safe --datadir='/mariadb/data' --skip-grant  &
[svr:root mariadb]# 190725 21:37:23 mysqld_safe Logging to '/var/log/mysqld.log'.
190725 21:37:23 mysqld_safe Starting mysqld daemon with databases from /mariadb/data

[svr:root mariadb]# cat /var/log/mysqld.log
2019-07-25 21:33:54 139808953165600 [Note] /mariadb/mariadb-10.2.25-linux-x86_64/bin/mysqld: ready for connections.
Version: '10.2.25-MariaDB'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MariaDB Server

[svr:root mariadb]# mariadb-10.2.25-linux-x86_64/bin/mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

[svr:root mariadb]# ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
[svr:root mariadb]# mariadb-10.2.25-linux-x86_64/bin/mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 10.2.25-MariaDB MariaDB Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>

# mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 13
Server version: 5.5.5-10.2.25-MariaDB MariaDB Server

Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

use mysql;
UPDATE user SET password=passWORD('root') where user='root';


mv /usr/bin/mysql /usr/bin/mysql.old
ln -s /mariadb/mariadb-10.2.25-linux-x86_64/bin/mysql /usr/bin/mysql


# iptables -I INPUT 1 -p tcp --dport 3306 -j ACCEPT
# service iptables save
# service iptables restart


  LIST

Copyright 1999-2022 Zeroboard / skin by 최길호(gilho.kr@gmail.com)
최근 댓글
2008/12/15
MySQL이 안좋은건가? 장애도 쉽게 나고,...
by 최길호
최근 게시물
06/29
[ORACLE]
DDE: Problem Key 'ORA 600 [133....
by 최길호
06/25
[ORACLE]
Replication may not be valid i....
by 최길호
06/22
[운영체제]
CentOS7 홈페이지 Migration 메모.
by 최길호