下面来讲讲SQLite在micro上的移植。 步骤: 一、编译适用于arm的数据库 1、下载SQLite源码包。网址:http://www.sqlite.org/ 2、
下面来讲讲SQLite在micro上的移植。
步骤:
一、编译适用于arm的数据库
1、下载SQLite源码包。网址:
2、解压源码包。
[root@localhost sql]# tar -zxvf SQLite.tar.gz
3、进入该目录。
[root@localhost sql]# cd SQLite
4、创建一个build目录,并进入。PS:此目录用于交叉编译。
[root@localhost build]# mkdir build
[root@localhost build]# cd build/
5、在build目录中运行配置程序。
[root@localhost build]# ../configure --host=arm-linux --prefix=/myworkspace/sql/SQLite/build/target
。。。。开始配置咯。。。。
PS:如果你对这些选项不清楚的话你就./configure --help (在源码目录中进行,或者写绝对路径)。
6、执行make和make install命令进行编译和安装。
[root@localhost build]#make&make install
。。。。开始编译和安装。。。。
(我这儿没有出现任何错误,如果大家出现了什么编译错误我们一起研究的(⊙o⊙)…)
完成过后你的build目录下有一个target目录中会有三个目录:
[root@localhost target]# ls
bin include lib
这个就不解释了哈。
二、移植数据库
1、将个刚才的target下的bin和lib目录放在一个新建的SQLite目录中。
2、接下来你就不择手段的将SQLite这个目录搞到你的开发板上去,然后添加环境变量
[root@localhost target]#vim /etc/profile PS:这里也可以用vi,只是我做了一个alias
在这个文件中添加下面两行
export PATH=/SQLite/bin:$PATH
export LD_LIBRARY_PATH=/lib:$LD_LIBRARY_PATH
重启就生效了。
三、测试
[root@FriendlyARM /]# sqlite3 file.db
SQLite version 3.7.15 2012-12-10 22:19:14
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> create table file(number,name);
sqlite> insert into file values(1,'BIN');
sqlite> insert into file values(2,'LIB');
sqlite> select * from file;
1|BIN
2|LIB
sqlite> .quit
[root@FriendlyARM /]#
看,上面创建了一个file的数据库,并且插入了两个记录,经查询,正确。说明你的数据库算是搞定了,接下来快去学习程序控制吧!

mysqlviewshavelimitations:1)supportallsqloperations、制限、dataManipulationswithjoinsorubqueries.2)それらは、特にパフォーマンス、特にパルフェクソルラージャターセット

reperusermanmanagementInmysqliscialforenhancingsecurationsinginuring databaseaperation.1)usecreateusertoaddusers、指定connectionsourcewith@'localhost'or@'% '。

mysqldoes notimposeahardlimitontriggers、しかしpracticalfactorsdeTerminetheireffectiveuse:1)serverconufigurationStriggermanagement; 2)complentiggersincreaseSystemload;

はい、それはssafetostoreblobdatainmysql、butonsiderheSeCactors:1)Storagespace:blobscanconsumesificantspace.2)パフォーマンス:パフォーマンス:大規模なドゥエットブロブスメイズ階下3)backupandrecized recized recized recize

PHP Webインターフェイスを介してMySQLユーザーを追加すると、MySQLI拡張機能を使用できます。手順は次のとおりです。1。MySQLデータベースに接続し、MySQLI拡張機能を使用します。 2。ユーザーを作成し、CreateUserステートメントを使用し、パスワード()関数を使用してパスワードを暗号化します。 3. SQLインジェクションを防ぎ、MySQLI_REAL_ESCAPE_STRING()関数を使用してユーザー入力を処理します。 4.新しいユーザーに権限を割り当て、助成金ステートメントを使用します。

mysql'sblobissuitable forstoringbinarydatawithinarationaldatabase、whileenosqloptionslikemongodb、redis、andcassandraofferferulesions forunstructureddata.blobissimplerbutcanslowdowdowd withwithdata

toaddauserinmysql、使用:createuser'username '@' host'identifidedby'password '; here'showtodoitsely:1)chosehostcarefilytoconを選択しますTrolaccess.2)setResourcelimitslikemax_queries_per_hour.3)usestrong、uniquasswords.4)endforcessl/tlsconnectionswith

toavoidcommonMonmistakeswithStringDatatypesinmysql、undultingStringTypenuste、choosetherightType、andManageEncodingandCollationsEttingtingive.1)Usecharforfixed-LengthStrings、Varcharforaible Length、AndText/Blobforlardata.2)setCurrectCherts


ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

Video Face Swap
完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

人気の記事

ホットツール

SublimeText3 英語版
推奨: Win バージョン、コードプロンプトをサポート!

PhpStorm Mac バージョン
最新(2018.2.1)のプロフェッショナル向けPHP統合開発ツール

SAP NetWeaver Server Adapter for Eclipse
Eclipse を SAP NetWeaver アプリケーション サーバーと統合します。

Safe Exam Browser
Safe Exam Browser は、オンライン試験を安全に受験するための安全なブラウザ環境です。このソフトウェアは、あらゆるコンピュータを安全なワークステーションに変えます。あらゆるユーティリティへのアクセスを制御し、学生が無許可のリソースを使用するのを防ぎます。

WebStorm Mac版
便利なJavaScript開発ツール
