windows에서 mysql 버전을 확인하는 방법입니다.

현재 window PC에는 MariaDB가 배포되어있어 MariaDB로 테스트하였습니다. mysql 버전확인 또한 동일합니다.



C:\> mysql -v

Welcome to the MariaDB monitor. Commands end with ; or \g.

Your MariaDB connection id is 2 Server version: 10.0.17-MariaDB mariadb.org binary distribution Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. MariaDB [(none)]> exit Bye




MariaDB version :  10.0.17-MariaDB

'MySQL' 카테고리의 다른 글

MySQL 소개  (0) 2017.09.06

1. MySQL stop

#service mysqld stop


2. MySQL_safe 실행

mysql에서 root 패스워드 없이 접근하기 위해서


#/usr/bin/mysqld_safe --skip-grant &

#/usr/bin/mysqld_safe --skip-grant-tables &

실행하다 커서가 #으로 돌아오지 않을 시  Ctrl + c로 돌아온다.


3. MySQL 패스워드 없이 접근

#/usr/bin/mysql -u root mysql


MySQL 5.7 version 미만 

SQL> UPDATE mysql.user SET password=PASSWORD('변경 할 패스워드') WHERE user='root';

SQL> FLUSH PRIVILEGES; 


MySQL 5.7 version 이상

SQL> UPDATE mysql.user SET authentication_string=PASSWORD('변경 할 패스워드') WHERE user='root'; 

SQL> FLUSH PRIVILEGES;


4. MySQL 재시작

#service mysqld start


5. MySQL

#mysql -u root -p

Enter password :          <--- 변경된 패스워드 입력



'Linux > MYSQL' 카테고리의 다른 글

[Linux][Centos]에서 MySQL 버전 확인하기  (0) 2017.09.06

+ Recent posts