mysql有永久免費版本?
成都創(chuàng)新互聯(lián)專業(yè)為企業(yè)提供莊浪網(wǎng)站建設、莊浪做網(wǎng)站、莊浪網(wǎng)站設計、莊浪網(wǎng)站制作等企業(yè)網(wǎng)站建設、網(wǎng)頁設計與制作、莊浪企業(yè)網(wǎng)站模板建站服務,十載莊浪做網(wǎng)站經(jīng)驗,不只是建網(wǎng)站,更提供有價值的思路和整體網(wǎng)絡服務。
也有收費版本,但是收費版本功能強大一點。
如果不想接受gpl協(xié)議,并且也不想開放自己的源代碼,就需要購買商業(yè)授權(quán)。
如果接受開源協(xié)議,那么可以在 gpl 和 gpl-foss 中選擇其一作為 mysql 的協(xié)議。
擴展資料
當前,MySQL采用雙重授權(quán)(Dual Licensed),他們是GPL和MySQL AB
制定的商業(yè)許可協(xié)議。
如果你在一個遵循GPL的自由(開源)項目中使用MySQL,那么你可以遵循GPL協(xié)議使用MySQL。否則,你需要購買MySQLAB制定的那個商業(yè)許可協(xié)議。
這里最重要的一點就是要想免費使用MySQL,你所開發(fā)的軟件必須是遵循GPL的自由(開源)軟件,雖然被批準的自由(開源)許可協(xié)議有很多個。
mysql耗內(nèi)存嗎?很多人都說MySQL占用了很大的虛擬內(nèi)存,那么這個問題應該怎么解決呢?下面是我收集整理的一些方法,現(xiàn)在分享給大家!
解決mysql耗內(nèi)存的具體方法一:
在分析的過程中發(fā)現(xiàn)最耗內(nèi)存的是MySQL,其中近1GB的內(nèi)存被它吞了,而且不在任務管理器體現(xiàn)出來。這個數(shù)據(jù)庫軟件是EMS要用到了,所以必須要運行。這個軟件在安裝的時候會根據(jù)機器的實際內(nèi)存自動進行配置,PC機物理內(nèi)存越多,它默認占有的內(nèi)存就越多,難怪3GB的內(nèi)存被它給吞了近1GB。
優(yōu)化方法:
1. 退出EMS clientserver
2. 在CMD里運行:net stop mysql
3. 找到MySQL\MySQL Server的安裝目錄,里面有個my.ini文件,參考附件的配置對參數(shù)query_cache_size tmp_table_size myisam_sort_buffer_size key_buffer_size innodb_buffer_pool_size進行修改,注意不要改動innodb_log_file_size,修改前備份my.ini
4. 在CMD里運行:net start mysql,如果提示成功,則說明修改的參數(shù)沒有什么問題,如果失敗,重新調(diào)整一下上面的參數(shù)
5. 找到EMS 安裝目錄runGUI.bat runServer.bat腳本,找到-Xmx700m,改為-Xmx256m,注意修改前備份這兩個文件,感謝Liping Sun提供幫助
6. 重新運行EMS
前后對比,對于3GB的PC,發(fā)現(xiàn)可以節(jié)省近1GB的內(nèi)存。對于2GB的PC,也可以節(jié)省600-800MB。優(yōu)化后發(fā)現(xiàn)EMS啟動稍微慢一些,但是其它的軟件運行速度提高了很多,不在經(jīng)常出現(xiàn)卡機現(xiàn)象了。如果在運行過程中發(fā)現(xiàn)EMS特別慢的話,自己也可以適當放大上面提到的一些參數(shù)。
my.ini
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Linux you can copy this file to /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options
# (@localstatedir@ for this installation) or to
# ~/.my.cnf to set user-specific options.
#
# On Windows you should keep this file in the installation directory
# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To
# make sure the server reads the config file use the startup option
# "--defaults-file".
#
# To run run the server from the command line, execute this in a
# command line shell, e.g.
# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# To install the server as a Windows service manually, execute this in a
# command line shell, e.g.
# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"
#
# And then execute this in a command line shell to start the server, e.g.
# net start MySQLXY
#
#
# Guildlines for editing this file
# ----------------------------------------------------------------------
#
# In this file, you can use all long options that the program supports.
# If you want to know the options a program supports, start the program
# with the "--help" option.
#
# More detailed information about the individual options can also be
# found in the manual.
#
#
# CLIENT SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by MySQL client applications.
# Note that only client applications shipped by MySQL are guaranteed
# to read this section. If you want your own MySQL client program to
# honor these values, you need to specify it as an option during the
# MySQL client library initialization.
#
[client]
port=3306
[mysql]
default-character-set=utf8
# SERVER SECTION
# ----------------------------------------------------------------------
#
# The following options will be read by the MySQL Server. Make sure that
# you have installed the server correctly (see above) so it reads this
# file.
#
[mysqld]
# The TCP/IP Port the MySQL Server will listen on
port=3306
#Path to installation directory. All paths are usually resolved relative to this.
basedir="D:/Program Files/MySQL/MySQL Server 5.1/"
#Path to the database root
datadir="C:/Documents and Settings/All Users/Application Data/MySQL/MySQL Server 5.1/Data/"
# The default character set that will be used when a new schema or table is
# created and no character set is defined
character-set-server=utf8
# The default storage engine that will be used when create new tables when
default-storage-engine=INNODB
# Set the SQL mode to strict
sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
# The maximum amount of concurrent sessions the MySQL server will
# allow. One of these connections will be reserved for a user with
# SUPER privileges to allow the administrator to login even if the
# connection limit has been reached.
max_connections=1510
# Query cache is used to cache SELECT results and later return them
# without actual executing the same query once again. Having the query
# cache enabled may result in significant speed improvements, if your
# have a lot of identical queries and rarely changing tables. See the
# "Qcache_lowmem_prunes" status variable to check if the current value
# is high enough for your load.
# Note: In case your tables change very often or if your queries are
# textually different every time, the query cache may result in a
# slowdown instead of a performance improvement.
query_cache_size=16M
# The number of open tables for all threads. Increasing this value
# increases the number of file descriptors that mysqld requires.
# Therefore you have to make sure to set the amount of open files
# allowed to at least 4096 in the variable "open-files-limit" in
# section [mysqld_safe]
table_cache=3020
# Maximum size for internal (in-memory) temporary tables. If a table
# grows larger than this value, it is automatically converted to disk
# based table This limitation is for a single table. There can be many
# of them.
tmp_table_size=4M
# How many threads we should keep in a cache for reuse. When a client
# disconnects, the client's threads are put in the cache if there aren't
# more than thread_cache_size threads from before. This greatly reduces
# the amount of thread creations needed if you have a lot of new
# connections. (Normally this doesn't give a notable performance
# improvement if you have a good thread implementation.)
thread_cache_size=64
#*** MyISAM Specific options
# The maximum size of the temporary file MySQL is allowed to use while
# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.
# If the file-size would be bigger than this, the index will be created
# through the key cache (which is slower).
myisam_max_sort_file_size=100G
# If the temporary file used for fast index creation would be bigger
# than using the key cache by the amount specified here, then prefer the
# key cache method. This is mainly used to force long character keys in
# large tables to use the slower key cache method to create the index.
myisam_sort_buffer_size=4M
# Size of the Key Buffer, used to cache index blocks for MyISAM tables.
# Do not set it larger than 30% of your available memory, as some memory
# is also required by the OS to cache rows. Even if you're not using
# MyISAM tables, you should still set it to 8-64M as it will also be
# used for internal temporary disk tables.
key_buffer_size=16M
# Size of the buffer used for doing full table scans of MyISAM tables.
# Allocated per thread, if a full scan is needed.
read_buffer_size=64K
read_rnd_buffer_size=256K
# This buffer is allocated when MySQL needs to rebuild the index in
# REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE
# into an empty table. It is allocated per thread so be careful with
# large settings.
sort_buffer_size=256K
#*** INNODB Specific options ***
# Use this option if you have a MySQL server with InnoDB support enabled
# but you do not plan to use it. This will save memory and disk space
# and speed up some things.
#skip-innodb
# Additional memory pool that is used by InnoDB to store metadata
# information. If InnoDB requires more memory for this purpose it will
# start to allocate it from the OS. As this is fast enough on most
# recent operating systems, you normally do not need to change this
# value. SHOW INNODB STATUS will display the current amount used.
innodb_additional_mem_pool_size=9M
# If set to 1, InnoDB will flush (fsync) the transaction logs to the
# disk at each commit, which offers full ACID behavior. If you are
# willing to compromise this safety, and you are running small
# transactions, you may set this to 0 or 2 to reduce disk I/O to the
# logs. Value 0 means that the log is only written to the log file and
# the log file flushed to disk approximately once per second. Value 2
# means the log is written to the log file at each commit, but the log
# file is only flushed to disk approximately once per second.
innodb_flush_log_at_trx_commit=1
# The size of the buffer InnoDB uses for buffering log data. As soon as
# it is full, InnoDB will have to flush it to disk. As it is flushed
# once per second anyway, it does not make sense to have it very large
# (even with long transactions).
innodb_log_buffer_size=5M
# InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and
# row data. The bigger you set this the less disk I/O is needed to
# access data in tables. On a dedicated database server you may set this
# parameter up to 80% of the machine physical memory size. Do not set it
# too large, though, because competition of the physical memory may
# cause paging in the operating system. Note that on 32bit systems you
# might be limited to 2-3.5G of user level memory per process, so do not
# set it too high.
innodb_buffer_pool_size=32M
# Size of each log file in a log group. You should set the combined size
# of log files to about 25%-100% of your buffer pool size to avoid
# unneeded buffer pool flush activity on log file overwrite. However,
# note that a larger logfile size will increase the time needed for the
# recovery process.
innodb_log_file_size=88M
# Number of threads allowed inside the InnoDB kernel. The optimal value
# depends highly on the application, hardware as well as the OS
# scheduler properties. A too high value may lead to thread thrashing.
innodb_thread_concurrency=8
解決mysql耗內(nèi)存的具體方法二:
更改后如下:
innodb_buffer_pool_size=576M -256M InnoDB引擎緩沖區(qū)占了大頭,首要就是拿它開刀
query_cache_size=100M -16M 查詢緩存
tmp_table_size=102M -64M 臨時表大小
key_buffer_size=256m -32M
重啟mysql服務后,虛擬內(nèi)存降到200以下.
另外mysql安裝目錄下有幾個文件:my-huge.ini 、my-large.ini、my-medium.ini...這幾個是根據(jù)內(nèi)存大小作的建議配置,新手在設置的時候也可以參考一下。
2G內(nèi)存的MYSQL數(shù)據(jù)庫服務器 my.ini優(yōu)化 (my.ini)
2G內(nèi)存,針對站少,優(yōu)質(zhì)型的設置,試驗特:
table_cache=1024 物理內(nèi)存越大,設置就越大.默認為2402,調(diào)到512-1024最佳
innodb_additional_mem_pool_size=8M 默認為2M
innodb_flush_log_at_trx_commit=0 等到innodb_log_buffer_size列隊滿后再統(tǒng)一儲存,默認為1
innodb_log_buffer_size=4M 默認為1M
innodb_thread_concurrency=8 你的服務器CPU有幾個就設置為幾,默認為8
key_buffer_size=256M 默認為218 調(diào)到128最佳
tmp_table_size=64M 默認為16M 調(diào)到64-256最掛
read_buffer_size=4M 默認為64K
read_rnd_buffer_size=16M 默認為256K
sort_buffer_size=32M 默認為256K
max_connections=1024 默認為1210
試驗一:
table_cache=512或1024
innodb_additional_mem_pool_size=2M
innodb_flush_log_at_trx_commit=0
innodb_log_buffer_size=1M
innodb_thread_concurrency=8 你的服務器CPU有幾個就設置為幾,默認為8
key_buffer_size=128M
tmp_table_size=128M
read_buffer_size=64K或128K
read_rnd_buffer_size=256K
sort_buffer_size=512K
max_connections=1024
試驗二:
table_cache=512或1024
innodb_additional_mem_pool_size=8M
innodb_flush_log_at_trx_commit=0
innodb_log_buffer_size=4M
innodb_thread_concurrency=8
key_buffer_size=128M
tmp_table_size=128M
read_buffer_size=4M
read_rnd_buffer_size=16M
sort_buffer_size=32M
max_connections=1024
一般:
table_cache=512
innodb_additional_mem_pool_size=8M
innodb_flush_log_at_trx_commit=0
innodb_log_buffer_size=4M
innodb_thread_concurrency=8
key_buffer_size=128M
tmp_table_size=128M
read_buffer_size=4M
read_rnd_buffer_size=16M
sort_buffer_size=32M
max_connections=1024
經(jīng)過測試.沒有特殊情況,最好還是用默認的.
2G內(nèi)存,針對站多,抗壓型的設置,最佳:
table_cache=1024 物理內(nèi)存越大,設置就越大.默認為2402,調(diào)到512-1024最佳
innodb_additional_mem_pool_size=4M 默認為2M
innodb_flush_log_at_trx_commit=1
(設置為0就是等到innodb_log_buffer_size列隊滿后再統(tǒng)一儲存,默認為1)
innodb_log_buffer_size=2M 默認為1M
innodb_thread_concurrency=8 你的服務器CPU有幾個就設置為幾,建議用默認一般為8
key_buffer_size=256M 默認為218 調(diào)到128最佳
tmp_table_size=64M 默認為16M 調(diào)到64-256最掛
read_buffer_size=4M 默認為64K
read_rnd_buffer_size=16M 默認為256K
sort_buffer_size=32M 默認為256K
max_connections=1024 默認為1210
thread_cache_size=120 默認為60
query_cache_size=64M
優(yōu)化mysql數(shù)據(jù)庫性能的十個參數(shù)
(1)、max_connections:
允許的同時客戶的數(shù)量。增加該值增加 mysqld 要求的文件描述符的數(shù)量。這個數(shù)字應該增加,否則,你將經(jīng)常看到 too many connections 錯誤。 默認數(shù)值是100,我把它改為1024 。
(2)、record_buffer:
每個進行一個順序掃描的線程為其掃描的每張表分配這個大小的一個緩沖區(qū)。如果你做很多順序掃描,你可能想要增加該值。默認數(shù)值是131072(128k),我把它改為16773120 (16m)
(3)、key_buffer_size:
索引塊是緩沖的并且被所有的線程共享。key_buffer_size是用于索引塊的緩沖區(qū)大小,增加它可得到更好處理的索引(對所有讀和多重寫),到你能負擔得起那樣多。如果你使它太大,系統(tǒng)將開始換頁并且真的變慢了。默認數(shù)值是8388600(8m),我的mysql主機有2gb內(nèi)存,所以我把它改為 402649088(400mb)。
4)、back_log:
要求 mysql 能有的連接數(shù)量。當主要mysql線程在一個很短時間內(nèi)得到非常多的連接請求,這就起作用,然后主線程花些時間(盡管很短)檢查連接并且啟動一個新線程。
back_log 值指出在mysql暫時停止回答新請求之前的短時間內(nèi)多少個請求可以被存在堆棧中。只有如果期望在一個短時間內(nèi)有很多連接,你需要增加它,換句話說,這值對到來的tcp/ip連接的偵聽隊列的大小。你的操作系統(tǒng)在這個隊列大小上有它自己的限制。試圖設定back_log高于你的操作系統(tǒng)的限制將是無效的。
當你觀察你的主機進程列表,發(fā)現(xiàn)大量 264084 | unauthenticated user | xxx.xxx.xxx.xxx | null | connect | null | login | null 的待連接進程時,就要加大 back_log 的值了。默認數(shù)值是50,我把它改為500。
(5)、interactive_timeout:
服務器在關閉它前在一個交互連接上等待行動的秒數(shù)。一個交互的客戶被定義為對 mysql_real_connect()使用 client_interactive 選項的客戶。 默認數(shù)值是28800,我把它改為7200。
(6)、sort_buffer:
每個需要進行排序的線程分配該大小的一個緩沖區(qū)。增加這值加速order by或group by操作。默認數(shù)值是2097144(2m),我把它改為 16777208 (16m)。
(7)、table_cache:
為所有線程打開表的數(shù)量。增加該值能增加mysqld要求的文件描述符的數(shù)量。mysql對每個唯一打開的表需要2個文件描述符。默認數(shù)值是64,我把它改為512。
(8)、thread_cache_size:
可以復用的保存在中的線程的數(shù)量。如果有,新的線程從緩存中取得,當斷開連接的時候如果有空間,客戶的線置在緩存中。如果有很多新的線程,為了提高性能可以這個變量值。通過比較 connections 和 threads_created 狀態(tài)的變量,可以看到這個變量的作用。我把它設置為 80。
(9)mysql的搜索功能
用mysql進行搜索,目的是能不分大小寫,又能用中文進行搜索
只需起動mysqld時指定 --default-character-set=gb2312
(10)、wait_timeout:
服務器在關閉它之前在一個連接上等待行動的秒數(shù)。 默認數(shù)值是28800,我把它改為7200。
注:參數(shù)的調(diào)整可以通過修改 /etc/my.cnf 文件并重啟 mysql 實現(xiàn)。這是一個比較謹慎的工作,上面的結(jié)果也僅僅是我的一些看法,你可以根據(jù)你自己主機的硬件情況(特別是內(nèi)存大小)進一步修改。
MySQL是一個小型關系型數(shù)據(jù)庫管理系統(tǒng),開發(fā)者為瑞典MySQL AB公司,現(xiàn)在已經(jīng)被Sun公司收購,支持FreeBSD、Linux、MAC、Windows等多種操作系統(tǒng)與其他的大型數(shù)據(jù)庫例如Oracle、DB2、SQL Server等相比功能稍弱一些。
優(yōu)點如下:
1. 它使用的核心線程是完全多線程,支持多處理器。
2. 有多種列類型:1、2、3、4、和8字節(jié)長度自有符號/無符號整數(shù)、FLOAT、DOUBLE、CHAR、VARCHAR、TEXT、BLOB、DATE、TIME、DATETIME、 TIMESTAMP、YEAR、和ENUM類型。?
3. 它通過一個高度優(yōu)化的類庫實現(xiàn)SQL函數(shù)庫并像他們能達到的一樣快速,通常在查詢初始化后不該有任何內(nèi)存分配。沒有內(nèi)存漏洞。?
4. 全面支持SQL的GROUP BY和ORDER BY子句,支持聚合函數(shù)(COUNT()、COUNT(DISTINCT)、AVG()、STD()、SUM()、MAX()和MIN())。你可以在同一查詢中混來自不同數(shù)據(jù)庫的表。?
5. 支持ANSI SQL的LEFT 0UTER JOIN和ODBC。?
6. 所有列都有缺省值。你可以用INSERT插入一個表列的子集,那些沒用明確給定值的列設置為他們的決省值。?
7. MySQL可以工作在不同的平臺上。支持C、C++、Java、Perl、PHP、Python和TCL API。?
MySQL的缺點:?
1、 MySQL最大的缺點是其安全系統(tǒng),主要是復雜而非標準,另外只有到調(diào)用mysqladmin來重讀用戶權(quán)限時才發(fā)生改變。?
2、 MySQL的另一個主要的缺陷之一是缺乏標準的RI(Referential Integrity-RI)機制;Rl限制的缺乏(在給定字段域上的一種固定的范圍限制)可以通過大量的數(shù)據(jù)類型來補償。?
3、 MySQL沒有一種存儲過程(Stored Procedure)語言,這是對習慣于企業(yè)級數(shù)據(jù)庫的程序員的最大限制。?
4、 MySQL不支持熱備份。?
5、 MySQL的價格隨平臺和安裝方式變化。
mysql數(shù)據(jù)庫的優(yōu)點如下:
1、速度:運行速度快。
2、價格:MySQL對多數(shù)個人來說是免費的。
3、容易使用;與其他大型數(shù)據(jù)庫的設置和管理相比,其復雜程度較低,容易學習。
4、可移植性:能夠工作在眾多不同的系統(tǒng)平臺上,例如:Windows、Linux、Unix、MacOS等。
5、豐富的接口:提供了用于C、C++、Eiffel、Java、Perl、PHP、Python、Rudy和TCL等語言的APl。6、支持查詢語言:MySQL可以利用標準SQL語法和支持ODBC(開放式數(shù)據(jù)庫連接)的應用程序。
7、安全性和連接性;十分靈活和安全的權(quán)限和密碼系統(tǒng),允許主機驗證。連接到服務器時,所有的密碼均采用加密形式,從而保證了密碼安全。并且由于MySQL時網(wǎng)絡化的,因此可以在因特網(wǎng)網(wǎng)上的任何地方訪問,提高數(shù)據(jù)共享效率。
1、發(fā)行費用,MySQL不全是免費,但很便宜。
當提及發(fā)行的費用,這兩個產(chǎn)品采用兩種絕然不同的決策。對于SQL服務器,獲取一個免費的開發(fā)費用最常的方式是購買微軟的Office或者Visual Studio的費用。
但是,如果想用于商業(yè)產(chǎn)品的開發(fā),必須還要購買SQL Server Standard Edition。學校或非贏利的企業(yè)可以不考慮這一附加的費用。
2、性能,先進MySQL。
純粹就性能而言,MySQL是相當出色的,因為它包含一個缺省桌面格式MyISAM。MyISAM 數(shù)據(jù)庫與磁盤非常地兼容而不占用過多的CPU和內(nèi)存。MySQL可以運行于Windows系統(tǒng)而不會發(fā)生沖突,在UNIX或類似UNIX系統(tǒng)上運行則更好。
還可以通過使用64位處理器來獲取額外的一些性能。因為MySQL在內(nèi)部里很多時候都使用64位的整數(shù)處理。Yahoo的商業(yè)網(wǎng)站就使用MySQL 作為后臺數(shù)據(jù)庫。
當提及軟件的性能,SQL服務器的穩(wěn)定性要比它的競爭對手強很多。但是,這些特性也要付出代價的。比如,必須增加額外復雜操作,磁盤存儲,內(nèi)存損耗等等。如果硬件和軟件不能充分支持SQL服務器,最好選擇其他如DBMS數(shù)據(jù)庫,因為這樣會得到更好的結(jié)果。
3、安全功能。
MySQL有一個用于改變數(shù)據(jù)的二進制日志。因為它是二進制,這一日志能夠快速地從主機上復制數(shù)據(jù)到客戶機上。即使服務器崩潰,這一二進制日志也會保持完整,而且復制的部分也不會受到損壞。
在SQL服務器中,也可以記錄SQL的有關查詢,但這需要付出很高的代價。
這兩個產(chǎn)品都有自己完整的安全機制。只要遵循這些安全機制,一般程序都不會出現(xiàn)什么問題。這兩者都使用缺省的IP端口,但是有時候很不幸,這些IP也會被一些黑客闖入。當然,也可以自己設置這些IP端口。
參考資料來源:百度百科——SQLserver數(shù)據(jù)庫
參考資料來源:百度百科——MySQL數(shù)據(jù)庫
MySQL的優(yōu)點:
1. 它使用的核心線程是完全多線程,支持多處理器。
2. 有多種列類型:1、2、3、4、和8字節(jié)長度自有符號/無符號整數(shù)、FLOAT、DOUBLE、CHAR、VARCHAR、TEXT、BLOB、DATE、TIME、DATETIME、 TIMESTAMP、YEAR、和ENUM類型。
3. 它通過一個高度優(yōu)化的類庫實現(xiàn)SQL函數(shù)庫并像他們能達到的一樣快速,通常在查詢初始化后不該有任何內(nèi)存分配。沒有內(nèi)存漏洞。
4. 全面支持SQL的GROUP BY和ORDER BY子句,支持聚合函數(shù)(COUNT()、COUNT(DISTINCT)、AVG()、STD()、SUM()、MAX()和MIN())。你可以在同一查詢中混來自不同數(shù)據(jù)庫的表。
5. 支持ANSI SQL的LEFT 0UTER JOIN和ODBC。
6. 所有列都有缺省值。你可以用INSERT插入一個表列的子集,那些沒用明確給定值的列設置為他們的決省值。
7. MySQL可以工作在不同的平臺上。支持C、C++、Java、Perl、PHP、Python和TCL API。
(2) MySQL的缺點:
1、 MySQL最大的缺點是其安全系統(tǒng),主要是復雜而非標準,另外只有到調(diào)用mysqladmin來重讀用戶權(quán)限時才發(fā)生改變。
2、 MySQL的另一個主要的缺陷之一是缺乏標準的RI(Referential Integrity-RI)機制;Rl限制的缺乏(在給定字段域上的一種固定的范圍限制)可以通過大量的數(shù)據(jù)類型來補償。
3、 MySQL沒有一種存儲過程(Stored Procedure)語言,這是對習慣于企業(yè)級數(shù)據(jù)庫的程序員的最大限制。
4、 MySQL不支持熱備份。
5、 MySQL的價格隨平臺和安裝方式變化。Linux的MySQL如果由用戶自己或系統(tǒng)管理員而不是第三方安裝則是免費的,第三方案則必須付許可費。Unix或Linux 自行安裝 免費 、Unix或Linux 第三方安裝 200美元,
當前文章:mysql服務怎么樣 mysql服務怎么開
鏈接URL:http://m.kartarina.com/article20/dodeeco.html
成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供電子商務、、搜索引擎優(yōu)化、網(wǎng)站制作、企業(yè)建站、網(wǎng)站設計公司
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)