This document provides examples of using various SQL functions including string, date, and math functions. It shows how to use functions like UPPER, LOWER, SUBSTRING, LEN, DATEADD, DATEDIFF, FLOOR, SQRT, SQUARE, and POWER in SELECT statements. The document aims to get started with basic SELECT queries and function usage in SQL.
The document discusses MySQL restore (recovery) commands that can be used to restore a full database or tables from a backup to the original state. It provides examples of commands to restore the full "yazilimcoplugu" database from a backup file located in the "/home/backup/" directory using the "mysql" command as well as options that can be used with the command. It also lists and describes various options that can be used with the "mysql" command.
The document discusses MySQL database backup and restore operations. It provides examples of standard and functional backup commands using mysqldump that can backup an entire database, specific tables, or all databases. It also lists various mysqldump options that can be used to customize backups, such as adding DROP statements, locking tables, skipping triggers or table creation information. Maintaining regular database backups is important for data protection and recovery.
1) The document discusses installing MySQL Enterprise Edition on a Linux server. It provides commands to remove any existing MySQL installation, install the necessary MySQL Enterprise libraries, client, and server RPM packages, start the MySQL service, and secure the root user account.
2) Steps include removing previous MySQL if existing, installing MySQL commercial library, client, and server RPMs, starting MySQL service, and running mysql_secure_installation to set the root password and disable remote root login for security.
3) The mysql_secure_installation script securely configures the newly installed MySQL server by removing anonymous users, disabling remote root login, removing the test database, and reloading privilege tables.
This document provides examples of using various SQL functions including string, date, and math functions. It shows how to use functions like UPPER, LOWER, SUBSTRING, LEN, DATEADD, DATEDIFF, FLOOR, SQRT, SQUARE, and POWER in SELECT statements. The document aims to get started with basic SELECT queries and function usage in SQL.
The document discusses MySQL restore (recovery) commands that can be used to restore a full database or tables from a backup to the original state. It provides examples of commands to restore the full "yazilimcoplugu" database from a backup file located in the "/home/backup/" directory using the "mysql" command as well as options that can be used with the command. It also lists and describes various options that can be used with the "mysql" command.
The document discusses MySQL database backup and restore operations. It provides examples of standard and functional backup commands using mysqldump that can backup an entire database, specific tables, or all databases. It also lists various mysqldump options that can be used to customize backups, such as adding DROP statements, locking tables, skipping triggers or table creation information. Maintaining regular database backups is important for data protection and recovery.
1) The document discusses installing MySQL Enterprise Edition on a Linux server. It provides commands to remove any existing MySQL installation, install the necessary MySQL Enterprise libraries, client, and server RPM packages, start the MySQL service, and secure the root user account.
2) Steps include removing previous MySQL if existing, installing MySQL commercial library, client, and server RPMs, starting MySQL service, and running mysql_secure_installation to set the root password and disable remote root login for security.
3) The mysql_secure_installation script securely configures the newly installed MySQL server by removing anonymous users, disabling remote root login, removing the test database, and reloading privilege tables.
1. MySQL Password Recovery & Linux Centos Root Şifresinin
Resetlenmesi
Merhaba Arkadaşlar,
Bugün ki yazımızda “ Mysql root şifresini “ resetleyeceğiz. Database root şifresini güvenlik gereği
not etmediğimiz için yer yer unutma problemi yaşayabiliyoruz. Bu sıkıntıyı en çok da ben yaşıyorum. Bu
yazı en çok da benim işime yarayacak.
Öncelikel Mysql’i durduruyoruz.
Kurduğunuz Mysql standart installation ise aşağıdaki komutu kullanabilirsiniz.
# /etc/init.d/mysqld stop
Shutting down MySQL. SUCCESS!
Yada
Kurduğunuz mysql rpm kurulumu ( Enterprice, Community Edition (GPL)) ise
# /etc/init.d/mysql stop
Shutting down MySQL. SUCCESS!
Sırada skip-grant özelliği ile Mysql’i tekrar başlatıyoruz.
# mysqld_safe --skip-grant-tables &
Starting mysqld daemon with databases from /var/lib/mysql
2. Artık Mysql’imizin root şifresi yok. Artık şifresiz girebilirsiniz.
[root@testmysql ~]# mysql –uroot ( Doğrudan Enter’e basalım. )
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1
Server version: 5.5.44 MySQL Community Server (GPL)
Copyright (c) 2000, 2015, 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>
Şimdi root için password belirleyelim.
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
3. mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('qwerty');
Query OK, 0 rows affected (0.00 sec)
mysql> quit;
Şimdi Mysql’î durduralım ve yeniden başlatalım.
# /etc/init.d/mysqld stop
Shutting down MySQL. SUCCESS!
Yada
# /etc/init.d/mysql stop
Shutting down MySQL. SUCCESS!
# /etc/init.d/mysqld stop
Starting MySQL.. SUCCESS!
Yada
# /etc/init.d/mysql start
Starting MySQL.. SUCCESS!
Şimdi yukarıda belirlediğimiz password ile login olabiliriz.
# mysql –uroot –p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or g.
Your MySQL connection id is 1
Server version: 5.5.44 MySQL Community Server (GPL)
4. Copyright (c) 2000, 2015, 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>
Kaynak :
http://dev.mysql.com/doc/refman/5.1/en/resetting-permissions.html
https://www.syslogs.org/mysql-sifresini-resetlemek/
Yazan: Hızlan ERPAK