最近在看达梦数据库。功能看起来应当不错,就是资料少得可怜,附的文档估计是更新不即时,很多都没说清楚或没说。 在这记录下数据库的安装,非常简单。 一。安装在指定用户下。 1. DM数据库系统用户 groupadd dinstalluseradd -g dinstall -m -d /home/dmdba
最近在看达梦数据库。功能看起来应当不错,就是资料少得可怜,附的文档估计是更新不即时,很多都没说清楚或没说。
在这记录下数据库的安装,非常简单。
一。安装在指定用户下。
1. DM数据库系统用户
groupadd dinstall useradd -g dinstall -m -d /home/dmdba -s /bin/bash dmdba passwd dmdba mkdir -p /opt/dmdbms chmod -R 755 /opt/dmdbms2. 执行安装 ./DMInstall.bin -i
3. DM数据库随机启动服务
/* bin目录下的DmServiceDMSERVER文件拷贝到/etc/rc.d/init.d 目录下如果手工执行: 设默认安装路径: /opt/dmdbms 服务名: DMSERVER ln –s /etc/rc.d/init.d/DmServiceDMSERVER /etc/rc.d/rc0.d/K02DmServiceDMSERVER ln –s /etc/rc.d/init.d/DmServiceDMSERVER /etc/rc.d/rc3.d/S98DmServiceDMSERVER ln –s /etc/rc.d/init.d/DmServiceDMSERVER /etc/rc.d/rc5.d/S98DmServiceDMSERVER ln –s /etc/rc.d/init.d/DmServiceDMSERVER /etc/rc.d/rc6.d/K02DmServiceDMSERVER chkconfig --add DmServiceDMSERVER
但在新的 DM 7 下没找到这些。。。 */
[dmdba@xclos dm7_20131111_neoky5_64]$ ./DMInstall.bin -i rm: cannot remove `/tmp/DMInstall/source': Permission denied rm: cannot remove `/tmp/DMInstall/install': Permission denied Extract install files......... chmod: changing permissions of `/tmp/DMInstall/': Operation not permitted chmod: changing permissions of `/tmp/DMInstall/source': Operation not permitted chmod: cannot read directory `/tmp/DMInstall/source': Permission denied chmod: changing permissions of `/tmp/DMInstall/install': Operation not permitted /tmp/DMInstall/install/install.sh: line 35: /tmp/DMInstall/source/script/ckdmstat.sh: Permission denied Welcome to DM Install Program Whether to input the path of Key File? (Y/y:Yes N/n:No) [Y/y]:^C -- 在 root 用户下删除掉 /tmp/DMInstall 后再执行安装 [dmdba@xclos dm7_20131111_neoky5_64]$ ./DMInstall.bin -i Extract install files......... Welcome to DM Install Program Whether to input the path of Key File? (Y/y:Yes N/n:No) [Y/y]:n Whether to Set The TimeZone? (Y/y:Yes N/n:No) [Y/y]:n Installation Type: 1 Typical 2 Server 3 Client 4 Custom Please Input the number of the Installation Type [1 Typical]:1 Require Space: 380M Please Input the install path [/home/dmdba/dmdbms]: Available Space: 99G Please Confirm the install path? (Y/y:Yes N/n:No) [Y/y]: Pre-Installation Summary Installation Location: /home/dmdba/dmdbms Require Space: 380M Available Space: 99G Version Information: Expire Data: Installation Type: Typical Confirm to Install? (Y/y:Yes N/n:No) [Y/y]: 2014-01-06 17:38:27 [INFO] Installing default Module... 2014-01-06 17:38:27 [INFO] Installing DM DBMS... 2014-01-06 17:39:01 [INFO] Installing server Module... 2014-01-06 17:40:06 [INFO] Installing client Module... 2014-01-06 17:40:11 [INFO] Installing drivers Module... 2014-01-06 17:40:11 [INFO] Installing manual Module... 2014-01-06 17:40:11 [INFO] Installing service Module... 2014-01-06 17:40:15 [ERROR] /etc/dm_svc.conf (Permission denied) 2014-01-06 17:40:15 [INFO] Move ant log file to log directory. 2014-01-06 17:40:16 [INFO] Installed DM DBMS completely. End [dmdba@xclos dm7_20131111_neoky5_64]$
二。 root用户下的安装 直接执行就行了。
[root@xcl12c soft]# tar -xzvf dm7_20131111_neoky5_64.tar.gz dm7_20131111_neoky5_64/DMInstall.bin dm7_20131111_neoky5_64/DM_Install_en.pdf dm7_20131111_neoky5_64/DM_Install_zh.pdf dm7_20131111_neoky5_64/dm.key [root@xcl12c soft]# ./dm7_20131111_neoky5_64/DMInstall.bin -i Extract install files......... Welcome to DM Install Program Whether to input the path of Key File? (Y/y:Yes N/n:No) [Y/y]:N Whether to Set The TimeZone? (Y/y:Yes N/n:No) [Y/y]:n Installation Type: 1 Typical 2 Server 3 Client 4 Custom Please Input the number of the Installation Type [1 Typical]:1 Require Space: 380M Please Input the install path [/opt/dmdbms]: Available Space: 10G Please Confirm the install path? (Y/y:Yes N/n:No) [Y/y]: Pre-Installation Summary Installation Location: /opt/dmdbms Require Space: 380M Available Space: 10G Version Information: Expire Data: Installation Type: Typical Confirm to Install? (Y/y:Yes N/n:No) [Y/y]: 2014-01-06 09:35:52 [INFO] Installing DM DBMS... 2014-01-06 09:35:52 [INFO] Installing default Module... 2014-01-06 09:35:54 [INFO] Installing server Module... 2014-01-06 09:35:57 [INFO] Installing client Module... 2014-01-06 09:35:58 [INFO] Installing drivers Module... 2014-01-06 09:35:58 [INFO] Installing manual Module... 2014-01-06 09:35:59 [INFO] Installing service Module... 2014-01-06 09:36:20 [INFO] Move ant log file to log directory. 2014-01-06 09:36:21 [INFO] Create system user "dmdba" successfully. 2014-01-06 09:36:21 [INFO] Installed DM DBMS completely. End MAIL: xcl_168@aliyun.com BLOG: http://blog.csdn.net/xcl168

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

The steps to build a MySQL database include: 1. Create a database and table, 2. Insert data, and 3. Conduct queries. First, use the CREATEDATABASE and CREATETABLE statements to create the database and table, then use the INSERTINTO statement to insert the data, and finally use the SELECT statement to query the data.

MySQL is suitable for beginners because it is easy to use and powerful. 1.MySQL is a relational database, and uses SQL for CRUD operations. 2. It is simple to install and requires the root user password to be configured. 3. Use INSERT, UPDATE, DELETE, and SELECT to perform data operations. 4. ORDERBY, WHERE and JOIN can be used for complex queries. 5. Debugging requires checking the syntax and use EXPLAIN to analyze the query. 6. Optimization suggestions include using indexes, choosing the right data type and good programming habits.

MySQL is suitable for beginners because: 1) easy to install and configure, 2) rich learning resources, 3) intuitive SQL syntax, 4) powerful tool support. Nevertheless, beginners need to overcome challenges such as database design, query optimization, security management, and data backup.

Yes,SQLisaprogramminglanguagespecializedfordatamanagement.1)It'sdeclarative,focusingonwhattoachieveratherthanhow.2)SQLisessentialforquerying,inserting,updating,anddeletingdatainrelationaldatabases.3)Whileuser-friendly,itrequiresoptimizationtoavoidper

ACID attributes include atomicity, consistency, isolation and durability, and are the cornerstone of database design. 1. Atomicity ensures that the transaction is either completely successful or completely failed. 2. Consistency ensures that the database remains consistent before and after a transaction. 3. Isolation ensures that transactions do not interfere with each other. 4. Persistence ensures that data is permanently saved after transaction submission.

MySQL is not only a database management system (DBMS) but also closely related to programming languages. 1) As a DBMS, MySQL is used to store, organize and retrieve data, and optimizing indexes can improve query performance. 2) Combining SQL with programming languages, embedded in Python, using ORM tools such as SQLAlchemy can simplify operations. 3) Performance optimization includes indexing, querying, caching, library and table division and transaction management.

MySQL uses SQL commands to manage data. 1. Basic commands include SELECT, INSERT, UPDATE and DELETE. 2. Advanced usage involves JOIN, subquery and aggregate functions. 3. Common errors include syntax, logic and performance issues. 4. Optimization tips include using indexes, avoiding SELECT* and using LIMIT.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver Mac version
Visual web development tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment