DB 설치가 완료되었으면 실행
[root@localhost init.d]# /etc/init.d/mysql start
Starting MariaDB SUCCESS!
서비스 확인
[root@localhost init.d]# netstat -an | grep 3306
tcp 0 0 :::3306 :::* LISTEN
root 패스워드 설정
[root@localhost init.d]# mysqladmin -u root password
New password:
Confirm new password:
root로 mysql 접속
[root@localhost init.d]# /usr/bin/mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 8
Server version: 5.5.68-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)]>
'programming > Linux' 카테고리의 다른 글
CentOS7에 MariaDB 10.6 설치하기 (1) (0) | 2021.08.24 |
---|---|
ERROR 1045 (28000): Access denied for user '-root'@'localhost' (using password: YES) (0) | 2021.07.08 |
CentOS6 에서 MariaDB 설치 시 NOKEY, RPM is not installed 오류 (0) | 2021.07.08 |
CentOS 6 yum 오류 해결 방법 (0) | 2021.07.08 |
[linux] CentOS 6.10 USB 설치 과정 (1) | 2021.07.06 |