Mysql Databases Root Password Reset CentOS 7

Mysql Databases Root Password Reset CentOS 7

Gerekli olduğunda eski sürümler ve özellikle mysql_safe komutu ile yapılan örnekler makaleler buldum fakat araştırmalarım sonucu yeni sürüm ile aşağıdaki yolu izlememiz gerektiğini keşfettim. 1. Stop mysql: systemctl stop mysqld 2. Set the mySQL environment option systemctl set-environment MYSQLD_OPTS=”–skip-grant-tables” 3. Start mysql usig the options you just set systemctl start mysqld 4. Login as root mysql -u root 5. Update […]