debian7 compile mysql5.6.12.txt
2014-04-03 10:21
169 查看
#Compile mysql-5.6.12 groupadd mysqluseradd -g mysql mysql ./configure --prefix=/usr/local/mysql#error ./configure: command not found sudo apt-get install cmakecmake . -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_TCP_PORT=3306 -DMYSQL_UNIX_ADDR=/tmp/mysql.sock #error Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH) #CMake Error at cmake/readline.cmake:85 (MESSAGE):#Curses library not found. Please install appropriate package,#remove CMakeCache.txt and rerun cmake.On Debian/Ubuntu, package name is libncurses5-dev, on Redhat and derivates it is ncurses-devel.sudo apt-get install libncurses5-devrm -f CMakeCache.txt makemake install sudo cp support-files/my-default.cnf /etc/my.cnfsudo cp support-files/mysql.server /etc/init.d/mysqlsudo chmod 775 /etc/init.d/mysql chown -R mysql:mysql . ./scripts/mysql_install_db --user=mysql --datadir=/var/lib/mysql #error#FATAL ERROR: Could not find ./bin/my_print_defaults #If you compiled from source, you need to run 'make install' to#copy the software into the correct location ready for operation. #If you are using a binary release, you must either be at the top#level of the extracted archive, or pass the --basedir option#pointing to that location. #fix# which my_print_defaults/usr/local/mysql/bin/my_print_defaults ./scripts/mysql_install_db --basedir=/usr/local/mysql --user=mysql --datadir=/var/lib/mysql /etc/init.d/mysql restart #error#[FAIL] MySQL server PID file could not be found! ... failed!#Starting MySQL#[FAIL..] The server quit without updating PID file (/usr/local/mysql/data/pomelo.pid). ... failed! sudo tail -f /usr/local/mysql/data/pomelo.err #2013-06-06 01:40:52 20561 [ERROR] Fatal error: Can't open and lock privilege tables: Table 'mysql.user' doesn't exist #Fix#Check valid params on my.cnf ./bin/mysqladmin -u root password '123' #change password
相关文章推荐
- java将数据写入到txt文件中(txt有固定的格式)
- Django 1.6 最佳实践: 如何设置django项目的设置(settings.py)和部署文件(requirements.txt)
- 参数批处理dir \B >log.txt 在批处理中失败的问题(参数前置符号需要为/才行:dir /B >log.txt)
- 每隔一秒读取txt文件显示在jsp页面上
- debian7安装问题解决方法
- Unity下关于C#的文件读写一(基于TXT的简单读写)
- robots.txt限制些什么屏蔽内容与安全性的考虑
- 【Qt】qDebug()调试信息保存至txt日志文件
- C++ 获取txt的编码格式,不保证100%
- C#控制台基础 streamreader 中的readtoend方法读取指定txt文件
- debian7get源,自动设置get源
- MPTCP - 3/4 OK -2- mptcp-kmsg-client.txt
- obj-c txt 关联。关系 txt输入框操作
- 获取文件夹下的文件名生成新的文件&DOC命令想从指定的txt中读出文件名,然后在指定文件夹以及子目录下搜索文件,并拷贝到指定目录
- Java 使用最新POI Lib 将Excel转换成Txt读取Excel内容工具类
- CMakeList.txt(2):CMakeLists.txt编写规则
- c# 写txt文件
- php 读取网页源码 , 导出成txt文件, 读取xls,读取文件夹下的所有文件的文件名
- C#中读取txt文件中的中文时出现乱码问题
- MATLAB与TXT文件的数据交换