/*************************************************************************
* 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. 高次同余方程模板BabyStep-GiantStep

    /************************************* ---高次同余方程模板BabyStep-GiantStep--- 输入:对于方程A^x=B(mod C),调用BabySt ...

  2. 爬虫入门【2】Requests库简介

    发送请求 使用Requests发送网络请求很简单 #首先要导入requests库 import requests #返回一个Response对象 r=requests.get('https://git ...

  3. [原创]使用vscode+es6写nodejs服务端调试配置

    前端的小伙伴们在babel等的加持下,已经可以愉快的使用es6来写代码了. 然后对于服务端的nodejs就有点坑爹了,虽然原生支持了es6,但是只是部分支持,一些不支持的特性(比如module)使用了 ...

  4. How to avoid Over-fitting using Regularization?

    http://www.mit.edu/~9.520/scribe-notes/cl7.pdf https://en.wikipedia.org/wiki/Bayesian_interpretation ...

  5. [luogu3601]签到题

    [luogu3601]签到题 luogu 求\[\sum_{i=l}^ri-\phi(i)\] 一个朴素的想法是枚举l~r,根号求\(\phi\),显然这样是\((r-l)\sqrt r\),时间无法 ...

  6. 次小生成树Tree

    次小生成树Treehttps://www.luogu.org/problemnew/show/P4180 题目描述 小C最近学了很多最小生成树的算法,Prim算法.Kurskal算法.消圈算法等等.正 ...

  7. centos安装 Falcon+

    1:环境 准备 : 安装 go环境 :下载 - Golang中国 参照 :http://www.cnblogs.com/Amos-Turing/p/8494250.html 安装 mysql 安装 r ...

  8. ppm图像相关

    PPM图像格式介绍 直接拿具体的数据来说明是最直接的,使用ue打开ppm文件,采用的都是十六进制asc码表示的,这里要注意地址00000000h中的最后一个字母是始终不变的,这原来没注意晕了我好久,第 ...

  9. vim下的ctags和taglist等的使用和配置

    1.ctags (1)到 http://prdownloads.sourceforge.net/ctags/ctags-5.6.tar.gz         下载ctags源码ctags-5.6.ta ...

  10. ICCV 2015 B-CNN细粒度分类

    哈哈,好久没写博客了....最近懒癌发作~~主要是因为心情不太好啊,做什么事情都不太顺心,不过已经过去啦.最近一直忙着公司的项目,想用这个网络,就给大家带来了的这篇文章.可能比较老,来自ICCV 20 ...