/*************************************************************************
* Debian for ARM
* 说明:
* 尝试一下Debian for ARM,然后安装了一下MySQL,还是遇到以前遇到的问题,
* 目前还是没有解决。
*
* 2017-2-17 深圳 南山平山村 曾剑锋
************************************************************************/ 一、参考文档:
. 向Tiny210移植Debian Linux
http://blog.csdn.net/laohuang1122/article/details/10828987
. Debian GNU/Linux 安装手册
https://www.debian.org/releases/stable/armhf/index.html.zh-cn
. EmDebian CrossDebootstrap
https://wiki.debian.org/EmDebian/CrossDebootstrap
. 使用 debootstrap 建立完整的 Debian 系統
https://github.com/KingBing/blog-src/blob/master/%E4%BD%BF%E7%94%A8%20debootstrap%20%E5%BB%BA%E7%AB%8B%E5%AE%8C%E6%95%B4%E7%9A%84%20Debian%20%E7%B3%BB%E7%B5%B1.org
. linux for ARM development boards
https://www.armbian.com/
. How to fix GPG in updater [duplicate]
http://askubuntu.com/questions/235880/how-to-fix-gpg-in-updater
. 创建基于arm的debian文件系统
http://blog.csdn.net/luoqindong/article/details/42737879
. mysql指定路径启动
http://www.cnblogs.com/mangu-uu/p/4162984.html
. Unable to set password for the mysql “root” user
http://askubuntu.com/questions/253023/unable-to-set-password-for-the-mysql-root-user 二、主要操作:
. # apt-get install binfmt-support qemu qemu-user-static debootstrap
. # mkdir debian_armhf_wheezy
. # debootstrap --foreign --arch armhf wheezy debian_armhf_wheezy http://ftp.debian.org/debian/
. # cp /usr/bin/qemu-arm-static debian_armhf_wheezy/usr/bin
. # DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot debian_armhf_wheezy /debootstrap/debootstrap --second-stage
. # DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot debian_armhf_wheezy dpkg --configure -a
. # sudo chroot debian_armhf_wheezy
. # vi /etc/apt/source.list
deb http://cdn.debian.net/debian wheezy main contrib non-free
deb-src http://cdn.debian.net/debian wheezy main contrib non-free 三、运行MySQL出错:
. 查看信息:
root@aplex:/var/log/mysql# mysql_install_db --user=mysql --ldata=/var/lib/mysql/
WARNING: The host 'aplex' could not be looked up with resolveip.
This probably means that your libc libraries are not % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
:: [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
:: [Warning] Ignoring user change to 'mysql' because the user was set to 'root' earlier on the command line :: [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
:: [Warning] Ignoring user change to 'mysql' because the user was set to 'root' earlier on the command line :: [Note] Ignoring --secure-file-priv value as server is running with --bootstrap.
:: [Note] /usr/sbin/mysqld (mysqld 5.5.-+deb7u2) starting as process ...
ERROR: Incorrect file format 'db'
:: [ERROR] Aborting :: [Note] /usr/sbin/mysqld: Shutdown complete Installation of system tables failed! Examine the logs in
/var/lib/mysql/ for more information. You can try to start the mysqld daemon with: shell> /usr/sbin/mysqld --skip-grant & and use the command line tool /usr/bin/mysql
to connect to the mysql database and look at the grant tables: shell> /usr/bin/mysql -u root mysql
mysql> show tables Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /var/lib/mysql/ that may be helpful. Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/. Please check all of the above before submitting a bug report
at http://bugs.mysql.com/ root@aplex:/var/log/mysql#
. 避开权限进入:
/usr/sbin/mysqld --skip-grant &

最新文章

  1. OracleGateway11gR2访问异构数据库(MSSQL)配置文档(转)
  2. JavaScript 将多个引用(样式或者脚本)放入一个文件进行引用
  3. Java 基础-运算符
  4. 【英语】Bingo口语笔记(24) - L的发音技巧
  5. JVM系列一:JVM内存组成及分配
  6. hostname、uname、dmesg、fdisk
  7. Linux学习笔记25——命名管道(FIFO)
  8. Android中的Selector的用法
  9. cas sso单点登录系列2:cas客户端和cas服务端交互原理动画图解,cas协议终极分析
  10. Win7启动修复MBR(Win7+Linux删除Linux后进入grub rescue的情况)
  11. Oracle中SQL语句学习五(统计分组语句group by和having)
  12. Ios 从无到有项目 MVVM模式(两)
  13. Ubuntu12.10 下搭建基于KVM-QEMU的虚拟机环境(八)
  14. Alyona and mex
  15. 怎么把一个int数组转化为char型数组??
  16. Activity启动过程分析
  17. Effective前端6:避免页面卡顿
  18. org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/domain/book.hbm.xml 联网跑一跑
  19. Python 3 进阶 —— print 打印和输出
  20. Angular4.x 创建组件|绑定数据|绑定属性|数据循环|条件判断|事件|表单处理|双向数据绑定

热门文章

  1. mysqldump命令使用详解
  2. 九度OJ 1334:占座位 (模拟)
  3. Netty ByteBuf(图解之 2)| 秒懂
  4. What happens when we continue stacking deeper layers on a “plain” convolutional neural network?
  5. Linux安装virtualenvwrapper详细步骤
  6. 我的Android进阶之旅------>Android中android:visibility 属性VISIBLE、INVISIBLE、GONE的区别
  7. spring 注解管理
  8. ThoughtWorks(中国) 程序员读书雷达
  9. git入门篇-----本地操作
  10. rewrite_static