YourMySQL connection> Serverversion: 5.6.10 Source distribution
Copyright(c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
Oracleis 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>update mysql.user set Password=password("123456") whereUser="root" and Host="localhost"; //修改root用户登录密码
QueryOK, 1 row affected (0.00 sec)
Rowsmatched: 1 Changed: 1 Warnings: 0
mysql>flush privileges; //更新授权表
QueryOK, 0 rows affected (0.01 sec)
mysql> 附录1:关于make时出现警告官网说明
http://bugs.mysql.com/bug.php?id=47609
[29 Nov 2010 8:26] Alexander Nozdrin
These warnings are now in trunk (5.6).
sql/sql_select produces the following warnings duringbuild on
'linux x86_64 werror':
------------------------------------------------------
/export/home/pb2/build/sb_0-2577370-1290600489.98/mysql-5.6.1-m5/sql/sql_select.cc:6829:warning: 'loose_scan_opt.Loose_scan_opt::bound_sj_equalities' may be useduninitialized in this function /export/home/pb2/build/sb_0-2577370-1290600489.98/mysql-5.6.1-m5/sql/sql_select.cc:6829:warning: 'loose_scan_opt.Loose_scan_opt::quick_max_loose_keypart' may be useduninitialized in this function/export/home/pb2/build/sb_0-2577370-1290600489.98/mysql-5.6.1-m5/sql/sql_select.cc:6829:warning: 'loose_scan_opt.Loose_scan_opt::best_loose_scan_key' may be useduninitialized in this function/export/home/pb2/build/sb_0-2577370-1290600489.98/mysql-5.6.1-m5/sql/sql_select.cc:6829:warning: 'loose_scan_opt.Loose_scan_opt::best_loose_scan_records' may be useduninitialized in this function/export/home/pb2/build/sb_0-2577370-1290600489.98/mysql-5.6.1-m5/sql/sql_select.cc:6829:warning: 'loose_scan_opt.Loose_scan_opt::best_max_loose_keypart' may be useduninitialized in this function/export/home/pb2/build/sb_0-2577370-1290600489.98/mysql-5.6.1-m5/sql/sql_select.cc:6829:warning: 'loose_scan_opt.Loose_scan_opt::best_loose_scan_start_key' may be useduninitialized in this function
------------------------------------------------------
The thing is that those variables are left uninitializedintentionally.
Here is what a comment in sql_select.cc says:
------------------------------------------------------
We needn't initialize:
bound_sj_equalities - protected by try_loosescan
quick_max_loose_keypart - protected byquick_uses_applicable_index
best_loose_scan_key - protected by best_loose_scan_cost!= DBL_MAX
best_loose_scan_records - same
best_max_loose_keypart - same
best_loose_scan_start_key - same
Not initializing them causes compiler warnings, but usingUNINIT_VAR()
would cause a 2% CPU time loss in a 20-table plan search.
So, until UNINIT_VAR(x) doesn't do x=0 for any C++ code,it's not used
here.
------------------------------------------------------ 附录2:cmake参数对照
从mysql5.5起,mysql源码安装开始使用cmake。下面是 mysql 5.5 与以前的参数对照:
configure Command
CMake Command
./configure
cmake .
./configure --help
cmake . -LH or ccmake .
Parameter
configure Option
CMake Option
CMake Notes
Installation base directory
--prefix=/usr
-DCMAKE_INSTALL_PREFIX=/usr
mysqld directory
--libexecdir=/usr/sbin
-DINSTALL_SBINDIR=sbin
interpreted> Man page directory
--mandir=/usr/share/man
-DINSTALL_MANDIR=share/man
interpreted> Shared-data directory
--sharedstatedir=/usr/share/mysql
-DINSTALL_SHAREDIR=share
this is where aclocal/mysql.m4 should be installed
Library installation directory
--libdir=/usr/lib64/mysql
-DINSTALL_LIBDIR=lib64/mysql