<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8379629491052743810</id><updated>2012-02-16T01:56:52.961-08:00</updated><category term='USER ADMINISTRATION'/><category term='MYSQL STOP START'/><category term='Backups'/><title type='text'>MYSQL Administration</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mysqlpot.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://mysqlpot.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>DBA</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8379629491052743810.post-8503205093080388560</id><published>2009-07-11T21:11:00.000-07:00</published><updated>2009-07-11T21:25:30.935-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USER ADMINISTRATION'/><title type='text'>mysqladmin — Client for Administering a MySQL Server</title><content type='html'>&lt;p&gt;&lt;a title="4.5.2. mysqladmin — Client for Administering a MySQL Server" href="http://dev.mysql.com/doc/refman/5.1/en/mysqladmin.html"&gt;mysqladmin&lt;/a&gt; is a client for performing administrative operations. You can use it to check the server's configuration and current status, to create and drop databases, and more. &lt;/p&gt;&lt;p&gt;shell&gt; mysqladmin [options] command [command-arg] [command [command-arg]] ...&lt;/p&gt;&lt;p&gt;&lt;a title="4.5.2. mysqladmin — Client for Administering a MySQL Server" href="http://dev.mysql.com/doc/refman/5.1/en/mysqladmin.html"&gt;mysqladmin&lt;/a&gt; supports the commands described in the following list. Some of the commands take an argument following the command name. &lt;/p&gt;&lt;p&gt;           &lt;span style="color:#3366ff;"&gt;* create db_name&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Create a new database named db_name.&lt;br /&gt;&lt;a name="command_mysqladmin_debug"&gt;&lt;/a&gt;          &lt;span style="color:#3366ff;"&gt; * debug&lt;br /&gt;&lt;/span&gt;Tell the server to write debug information to the error log.&lt;br /&gt;          &lt;span style="color:#3366ff;"&gt;* drop db_name&lt;/span&gt; &lt;/p&gt;&lt;p&gt;Delete the database named db_name and all its tables.&lt;br /&gt;&lt;a name="command_mysqladmin_extended-status"&gt;&lt;/a&gt;         &lt;span style="color:#3366ff;"&gt; * extended-status&lt;br /&gt;&lt;/span&gt;Display the server status variables and their values. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379629491052743810-8503205093080388560?l=mysqlpot.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/8503205093080388560'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/8503205093080388560'/><link rel='alternate' type='text/html' href='http://mysqlpot.blogspot.com/2009/07/mysqladmin-client-for-administering.html' title='mysqladmin — Client for Administering a MySQL Server'/><author><name>DBA</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8379629491052743810.post-7911917207214513067</id><published>2009-07-11T21:09:00.000-07:00</published><updated>2009-07-11T21:10:12.245-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USER ADMINISTRATION'/><title type='text'>Mysqladmin</title><content type='html'>&lt;a name="SECTION0005000000"&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;mysqladmin&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;The mysqladmin program is used to administrate various aspects of the MySQL database server. Using it, the administrator can perform tasks such as: create and delete databases, shutdown the database server, update the privilege tables, and view running MySQL processes.&lt;br /&gt;&lt;br /&gt; The general syntax is:&lt;br /&gt; %&gt;mysqladmin [options] command(s)&lt;br /&gt;&lt;br /&gt;Where [options] can be one or a series of options used in conjunction with the mysqladmin program, and [database] is the name of the database to use. Since it is assumed to be the reader's first time using the MySQL monitor, take a moment to review all offered options by executing the following command:&lt;br /&gt;&lt;br /&gt; %&gt;mysqladmin --help&lt;br /&gt;&lt;br /&gt;This produces a long list of options that can be used in conjunction with the mysqladmin program. As a demonstration of how these options are used, let's use mysqladmin to create a new database named widgets, which will be used throughout the remainder of this article to demonstrate various other useful MySQL functions. A new database is created as follows:&lt;br /&gt;&lt;br /&gt;%&gt;mysqladmin -u root -p create widgets&lt;br /&gt;Enter Password:&lt;br /&gt;&lt;br /&gt;Upon execution, mysqladmin will create the database and return to the shell prompt. Typically, the next step is to secure the new database by modifying the privilege tables. Details regarding how this is accomplished is the subject of the next section.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379629491052743810-7911917207214513067?l=mysqlpot.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/7911917207214513067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/7911917207214513067'/><link rel='alternate' type='text/html' href='http://mysqlpot.blogspot.com/2009/07/mysqladmin.html' title='Mysqladmin'/><author><name>DBA</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8379629491052743810.post-1030683780510828089</id><published>2009-07-11T21:06:00.000-07:00</published><updated>2009-07-11T21:08:07.723-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USER ADMINISTRATION'/><title type='text'>Selecting a database</title><content type='html'>&lt;p&gt;Of course, simply connecting to the MySQL server isn't going to accomplish much. Chances are you will want to select a database to work with. &lt;/p&gt;&lt;p&gt;This is accomplished in one of two ways:&lt;br /&gt;Including the name of the database along with the mysql connection command. &lt;/p&gt;&lt;p&gt;For example, the command used to both connect to the MySQL server and select the mysql database is:&lt;/p&gt;&lt;p&gt; %&gt;mysql -u root -p mysql&lt;/p&gt;&lt;p&gt;This might be misleading for some readers, as it seems as if the intent is to input mysql as the password. This is not correct. Take a moment to review the syntax as described in the mysql --help output, and it will be apparent that �u root �p actually comprise the [options] component of the syntax, and mysql comprises the [database] component. &lt;/p&gt;&lt;p&gt;Once connected, select the database using the use command, as follows: mysql&gt;use mydatabase&lt;br /&gt;Once executed, all queries not explicitly specifying a database name will be directed towards the hypothetical mydatabase database.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379629491052743810-1030683780510828089?l=mysqlpot.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/1030683780510828089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/1030683780510828089'/><link rel='alternate' type='text/html' href='http://mysqlpot.blogspot.com/2009/07/selecting-database.html' title='Selecting a database'/><author><name>DBA</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8379629491052743810.post-8566184842270721064</id><published>2009-07-11T21:01:00.000-07:00</published><updated>2009-07-11T21:03:04.915-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Backups'/><title type='text'>mysqlhotcopy  - database backups mysql</title><content type='html'>&lt;a name="SECTION0007200000"&gt;&lt;/a&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;mysqlhotcopy&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;The mysqlhotcopy utility is a perl script that uses several basic system and SQL commands to backup a database. More specifically, it will lock the tables, flush the tables, make a copy, and unlock the tables. Although it is the fastest method available for backing up a MySQL database, it is limited to backing up only those databases residing on the same machine as where it is executed.&lt;br /&gt;The function mysqlhotcopy can be executed to backup one database, a number of databases, or only those databases matching a name specified by a regular expression. In this section, the syntax involved with each scenario is provided, followed with a few examples.&lt;br /&gt;&lt;br /&gt;Using mysqlhotcopy to backup just one database:&lt;br /&gt;%&gt;mysqlhotcopy [options] db_name /path/to/new_directory&lt;br /&gt;&lt;br /&gt;Using mysqlhotcopy to backup just several databases:&lt;br /&gt;%&gt;mysqlhotcopy [options] db_name_1 ... db_name_n /path/to/new_directory&lt;br /&gt;&lt;br /&gt;Using mysqlhotcopy to backup only those tables within a given database that match a regular expression:&lt;br /&gt;%&gt;mysqlhotcopy [options] db_name./regex/&lt;br /&gt;&lt;br /&gt;The options can be viewed by executing the following command:&lt;br /&gt;%&gt;mysqlhotcopy --help&lt;br /&gt;&lt;br /&gt;Examples:Experiment with mysqlhotcopy by backing up the widgets database to the directory path "/usr/mysql/backups/". Execute the following command:&lt;br /&gt;&lt;br /&gt;%&gt;mysqlhotcopy -u root -p widgets /usr/mysql/backups&lt;br /&gt;As a second example, assume that the widgets database contains the tables: "products2000", "products2001", "clientele2000", and "clientele2001", with the four digits at the end of each name representing the year for which that data represents. The administrator wants to backup only those tables relative to the year "2000":&lt;br /&gt;%&gt;mysqlhotcopy -u root -p widgets./^.+('2000')$/ /usr/mysql/backups&lt;br /&gt;&lt;br /&gt;In the above example, the regular expression /^.+('2000')$/ tells mysqlhotcopy to only backup those tables ending with the string "2000".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379629491052743810-8566184842270721064?l=mysqlpot.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/8566184842270721064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/8566184842270721064'/><link rel='alternate' type='text/html' href='http://mysqlpot.blogspot.com/2009/07/mysqlhotcopy-database-backups-mysql.html' title='mysqlhotcopy  - database backups mysql'/><author><name>DBA</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8379629491052743810.post-3782437086319698439</id><published>2009-07-11T20:56:00.000-07:00</published><updated>2009-07-11T21:00:42.913-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Backups'/><title type='text'>mysqldump - database backups mysql</title><content type='html'>&lt;p&gt;&lt;a name="SECTION0007100000"&gt;&lt;/a&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;mysqldump&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;The utility mysqldump provides a rather convenient way to dump existing data and table structures. Note that while mysqldump is not the most efficient method for creating backups (mysqlhotcopy is, described next), it does offer a convenient method for copying data and table structures which could then be used to repopulate another SQL server, that server not even necessarily being MySQL.&lt;br /&gt;The function mysqldump can be used to backup all databases, several databases, one database, or just certain tables within a given database. In this section, the syntax involved with each scenario is provided, followed with a few examples.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Using mysqldump to backup just one database:&lt;/p&gt;&lt;p&gt;%&gt;mysqldump [options] db_name&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Using mysqldump to backup several tables within a database:&lt;/p&gt;&lt;p&gt;%&gt;mysqldump [options] db_name table1 table2 . . . tableN&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Using mysqldump to backup several databases: &lt;/p&gt;&lt;p&gt;%&gt;mysqldump [options] --databases [options] db_name1 db_name2 . . . db_nameN&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Using mysqldump to backup all databases: %&gt;mysqldump [options] --all-databases [options]&lt;br /&gt;The options can be viewed by executing the following command: %&gt;mysqldump --help&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Examples:&lt;br /&gt;Backing up both the structure and data found within the widgets database would be accomplished as follows: &lt;/p&gt;&lt;p&gt;%&gt;mysqldump -u root -p --opt widgets&lt;br /&gt;Alternatively, perhaps just a backup of the data is required. This is accomplished by including the option --no-create-info, which means no table creation data: %&gt;mysqldump -u root -p --no-create-info widgets&lt;br /&gt;Another variation is just to backup the table structure. This is accompished by including the option --no-data, which means no table data: &lt;/p&gt;&lt;p&gt;%&gt;mysqldump -u root -p --no-data widgets &lt;/p&gt;&lt;p&gt;&lt;br /&gt;If you are planning on using mysqldump for reason of backing up data so it can be moved to another MySQL server, it is recommended that you use the option '--opt'. This will give you an optimized dump which will result in a faster read time when you later load it to another MySQL server.&lt;br /&gt;While mysqldump provides a convenient method for backing up data, there is a second method which is both faster and more efficient. It is described in the next section. &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379629491052743810-3782437086319698439?l=mysqlpot.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/3782437086319698439'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/3782437086319698439'/><link rel='alternate' type='text/html' href='http://mysqlpot.blogspot.com/2009/07/mysqldump-database-backups-mysql.html' title='mysqldump - database backups mysql'/><author><name>DBA</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8379629491052743810.post-7745855063087235679</id><published>2009-07-11T04:28:00.000-07:00</published><updated>2009-07-11T04:29:27.596-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MYSQL STOP START'/><title type='text'>MYSQL STOP START</title><content type='html'>* To start mysql server:# /etc/init.d/mysql start&lt;br /&gt;* To stop mysql server:# /etc/init.d/mysql stop&lt;br /&gt;* To restart mysql server# /etc/init.d/mysql restart&lt;br /&gt;&lt;br /&gt;# To Start MySQL Server/sbin/service mysqld start&lt;br /&gt;# To Stop MySQL Server/sbin/service mysqld stop&lt;br /&gt;# To Restart MySQL Server/sbin/service mysqld restart&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379629491052743810-7745855063087235679?l=mysqlpot.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/7745855063087235679'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/7745855063087235679'/><link rel='alternate' type='text/html' href='http://mysqlpot.blogspot.com/2009/07/mysql-stop-start.html' title='MYSQL STOP START'/><author><name>DBA</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8379629491052743810.post-5965825682588728844</id><published>2009-07-11T04:27:00.001-07:00</published><updated>2009-07-11T04:27:52.349-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USER ADMINISTRATION'/><title type='text'>Login to Mysql commands</title><content type='html'>Login in to Mysql :&lt;br /&gt;1)ps -ef&lt;br /&gt;2) Login to user&lt;br /&gt;3)Command$ mysql -u root -p&lt;br /&gt;Enter password:&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379629491052743810-5965825682588728844?l=mysqlpot.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/5965825682588728844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/5965825682588728844'/><link rel='alternate' type='text/html' href='http://mysqlpot.blogspot.com/2009/07/login-to-mysql-commands.html' title='Login to Mysql commands'/><author><name>DBA</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-8379629491052743810.post-1151541271544647599</id><published>2009-06-22T11:38:00.001-07:00</published><updated>2009-06-22T11:39:22.752-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='USER ADMINISTRATION'/><title type='text'>MYSQL ADMINISTRATION</title><content type='html'>Learn MYSQL Administration&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8379629491052743810-1151541271544647599?l=mysqlpot.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/1151541271544647599'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8379629491052743810/posts/default/1151541271544647599'/><link rel='alternate' type='text/html' href='http://mysqlpot.blogspot.com/2009/06/mysql-administration.html' title='MYSQL ADMINISTRATION'/><author><name>DBA</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
