LAMP 3.4 MySQL Common operation-2

Source: Internet
Author: User

Authorization to the user

' User1 ' @'192.168.1.%'wangshaojun';

Specify the library, user name User1 all under the network segment, password Wangshaojun

Permissions are not valid after authorization, refresh permissions

> Flush Privileges;

View database There are those queues, like PS, that have those processes at work

> Show processlist;

View variables

> Show processlist;

Changing these values in the config file requires restarting MySQL, which can be changed directly in MySQL.

Change Max_connections 150 to 200

Set Global max_connections=;

View the specified value

' max_connec% ';

% indicates a wildcard.

View status

> Show status;

View the specified state

' %buffer% ';

Check the MySQL error log defined in this script

Vim/etc/init.d/mysqld

Datadir=/data/mysql

The error log is

Ls/data/mysql/wangshaojun.err

Tail Wangshaojun.err

Fix a table.

> Repair table discuz.pre_form_post;

LAMP 3.4 MySQL Common operation-2

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.