Installing MySQL on Windows

Installing MySQL on Windows Your downloaded MySQL is neatly packaged with an installer. Download the installer package, unzip it anywhere and run setup.exe. By default, this process will install everything under C:\mysql. Verify MySQL installation Once MySQL has been successfully installed, the base tables have been initialized, and the server has been started, you can … Read more

MySQL –Administration

MySQL 13Runningand Shutting down MySQL Server MySQL 13Runningand Shutting down MySQL ServerFirst check if your MySQL server is running or not. You can use the following command to check it:                        ps -ef | grep mysqld If your MySql is running, then you will seemysqldprocess listed out in your result. If server is not running, … Read more

Perl Installation Notes

Perl Installation Notes The Perl DBI module provides a generic interface for database access. You can write a DBI script that works with many different database engines without change. To use DBI, you must install the DBI module, as well as a DataBase Driver (DBD) module for each type of database server you want to … Read more

Installing MySQL on Linux

Installing MySQL on Linux Linux supports a number of different solutions for installing MySQL. Table  Linux Installation Methods and Information As an alternative, you can use the package manager on your system to automatically download and install MySQL with packages from the native software repositories of your Linux distribution. These native packages are often several … Read more

MYSQL

Overview of the MySQL Database Management Sysytem MYSQL – MySQL, the most popular Open Source SQL database management system, is developed, distributed, and supported by Oracle Corporation. The MySQL website (http://www.mysql.com/) provides the latest information about MySQL software. MySQL is a database management system. A database is a structured collection of data. It may be … Read more

myisamchk: error: myisam_sort_buffer_size is too small

myisamchk error myisam_sort_buffer_size is too small

myisamchk: error: myisam_sort_buffer_size is too small MySQL Error while repair with myisamchk utility – recovering (with sort) MyISAM-table ‘tableName’ Data records: 10662929483 – Fixing index 1 myisamchk: error: myisam_sort_buffer_size is too small MyISAM-table ‘tableName’ is not fixed because of errors Try fixing it by using the –safe-recover (-o), the –force (-f) option or by not using … Read more

mysql create index on table

mysql 5.7

mysql create index on table   CREATE INDEX Syntax Creates an index on a table. Duplicate values are allowed: CREATE INDEX index_name ON table_name (column1, column2, …); CREATE UNIQUE INDEX Syntax Creates a unique index on a table. Duplicate values are not allowed: CREATE UNIQUE INDEX index_name ON table_name (column1, column2, …); Note: The syntax for creating indexes varies among different databases. Therefore: Check the syntax for … Read more

MySQL Server Logs

mysql 5.7

 MySQL Server Logs MySQL Server has several logs that can help you find out what activity is taking place. By default, no logs are enabled, except the error log on Windows. (The DDL log is always created when required, and has no user-configurable options. The following logspecific sections provide information about the server options that … Read more

mysqld dead but subsys locked

mysql 5.7

mysqld dead but subsys locked Backup for future Safety: cp /var/lock/subsys/mysqld /root/mysqld than delete it rm /var/lock/subsys/mysqld then close all services that depends on mysql: service httpd stop and after that: service mysqld restart service httpd restart  

Rename database in MySQL

mysql 5.7

From phpMyAdmin, select the database you want to select. In the tabs there’s one called Operations, go to the rename section. That’s all. It does, as many suggested, create a new database with the new name, dump all tables of the old database into the new database and drop the old database. Other method: Create … Read more