/*************************************************************************
* 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 &

Debian for ARM的更多相关文章

  1. Debian For ARM Webmin Server

    /******************************************************************************** * Debian For ARM W ...

  2. Debian For ARM mysql-server install information

    /**************************************************************************** * Debian For ARM mysql ...

  3. Debian for ARM install python 3.5.x

    /********************************************************************************** * Debian for ARM ...

  4. [转]ARM/Thumb2PortingHowto

    src: https://wiki.edubuntu.org/ARM/Thumb2PortingHowto#ARM_Assembler_Overview When you see some assem ...

  5. I.MX6 使用Ubuntu文件系统

    /********************************************************************************* * I.MX6 使用Ubuntu文 ...

  6. linux(debian) arm-linux-g++ v4.5.1交叉编译 embedded arm 版本的QtWebkit (browser) 使用qt 4.8.6 版本

    最近需要做一个项目 在arm 架构的linux下 没有桌面环境的情况下拉起 有界面的浏览器使用. 考虑用qt 的界面和 qtwebikt 的库去实现这一系列操作. 本文参考: Qt移植到ARM Lin ...

  7. linux(debian) arm-linux-g++ v4.5.1交叉编译 embedded arm 版本的QtWebkit (browser) 使用qt 4.8.6 版本 以及x64上编译qt

    最近需要做一个项目 在arm 架构的linux下 没有桌面环境的情况下拉起 有界面的浏览器使用. 考虑用qt 的界面和 qtwebikt 的库去实现这一系列操作. 本文参考: Qt移植到ARM Lin ...

  8. [boostrap]debian下为arm创建debian和emdebian文件系统

    转自:http://www.cnblogs.com/qiaoqiao2003/p/3738552.html Debian系统本身包含对arm的支持,其包含的软件包最多,但是最终的文件系统要大一些. e ...

  9. [debootstrap]制作基于arm平台的debian文件系统

    之前用过的Linux文件系统是直接busybox制作的,而当前使用的是debian的Jessie,看了一些博客后,了解到如果使用debian,那么直接使用debootstrap来构建文件系统即可 -- ...

随机推荐

  1. 微信小程序的官方文档

    虽然不知道微信小程序今后的发展情况,不过做为一名it人员的我还是去了解它. 这是他的文档路径,里面有详细的使用和申请内测号的全部流程,这里就不再过多解释了. 看后那个开发小程序的文档记得分析你感觉微信 ...

  2. Unity 插件收集(持续更新)

    MGS Machinery Unity绑定机械关节,铰链,机构插件包.    MGS Mechanical Drive 用于绑定场景中的机械驱动器的Unity插件   Unity Wave Propa ...

  3. Java中线程和线程池

    Java中开启多线程的三种方式 1.通过继承Thread实现 public class ThreadDemo extends Thread{ public void run(){ System.out ...

  4. 九度OJ 1205:N阶楼梯上楼问题 (斐波那契数列)

    时间限制:1 秒 内存限制:128 兆 特殊判题:否 提交:3739 解决:1470 题目描述: N阶楼梯上楼问题:一次可以走两阶或一阶,问有多少种上楼方式.(要求采用非递归) 输入: 输入包括一个整 ...

  5. iOS 运行时详解

    注:本篇文章转自:http://www.jianshu.com/p/adf0d566c887 一.运行时简介 Objective-C语言是一门动态语言,它将很多静态语言在编译和链接时期做的事放到了运行 ...

  6. Centos 6 安装 python2.7 和 pip

    一.安装 python2.7 [root@crazy-acong ~]# cd /data/tools/ [root@crazy-acong tools]# yum groupinstall &quo ...

  7. Difference Between ZIP and GZIP

    From: http://www.differencebetween.net/technology/difference-between-zip-and-gzip/ Summary: 1. GZIP ...

  8. 我的Android进阶之旅------>/storage/sdcard0, /sdcard, /mnt/sdcard ,/storage/emulated/legacy 的区别

    转自:http://bbs.gfan.com/android-5382920-1-1.html 关于android的4.2的0文件夹的详解---- android 4.0 ----在galaxy ne ...

  9. [转载]设计模式的UML图

    1.抽象工厂(Abstract Factory)模式 意图:为特定的客户(或情况)提供特定系列的对象. 2.类的适配器(Adapter)模式 意图:将一个类的接口转换成客户希望的另外一个接口. 3.对 ...

  10. NCL 小图对其问题

    从昨天下午开始的折腾终于告一段落,虽然解决得不甚完善,只是图可以用了…… 问题起自想把之前手动拼成的一页四张的图用脚本自动生成,这样一方面应该对得更齐一点,另一方面大大节省人工. 这本来应该是件很容易 ...