安装MYSQL并用ECLIPSE开发程序连接资料.doc

MYSQL是免费的数据库(Community版本免费,Enterprise版本收费) 一、MYSQL Community Server数据库的下载 / 点击“Download” 点击“Community” 选择“MySQL Community Server” 选择“Windows (x86, 32-bit), ZIP Archive(mysql-5.6.25-win32.zip)”下载(343.8M) 需要注册Oracal账户 用户名:,密码: 注册登录后 下载 二、安装(此版本不需要安装, 只需要解压后放在C盘即可,没有Setup.exe文件,同TOMCAT安装方式) mysql-5.6.25-win32.zip文件大小:343M 解压ZIP文件,放在C盘根目录中。将里面的数据库文件夹拷贝的C盘根目录 将my-default.ini复制一份命名为my.ini,注意此文件路径。 打开my.ini,进行相关配置。 将相关的#去掉,并进行路径和字符集配置(端口默认3306,主机地址为,主机名为localhost,用户名root,密码为空) ,这里编码方式为UTF8,同时要保证编码方式都相同 # For advice on how to change settings please see # /doc/refman/5.6/en/server-configuration-defaults.html # *** DO NOT EDIT THIS FILE. Its a template which will be copied to the # *** default location during install, and will be replaced if you # *** upgrade to a newer version of MySQL. [mysqld] # Remove leading # and set to the amount of RAM for the most important data # cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. # innodb_buffer_pool_size = 128M # Remove leading # to turn on a very important data integrity option: logging # changes to the binary log between backups. # log_bin # These are commonly set, remove the # and set as required. basedir = C:\mysql-5.6.25-win32 datadir = C:\mysql-5.6.25-win32\data # port = # server_id = # Remove leading # to set options mainly useful for reporting servers. # The server defaults are faster for transactions and fast SELECTs. # Adjust sizes as needed, experiment to find the optimal values. # join_buffer_size = 128M # sort_buffer_size = 2M # read_rnd_buffer_size = 2M sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES #服务端的编码方式 character-set-server=UTF8 [client] #客户端编码方式,最好和服务端保持一致 loose-default-character-set= UTF8 [WinMySQLadmin] Server=C:\mysql-5.6.25-win32\bin\mysqld.exe 到DOS命令行下对MYSQL进行注册 开始——运行——cmd,然后cd到mysql安装目录的bin下面,我的目录就是“C:\mysql-5.6.2-win32\bin”。然后执行mysqld –install提示服务安装成功!运行services.msc,确实有一个名为MySQL的服务了,启动它。MySQL的默认用户名是root,密码

文档评论(0)

1亿VIP精品文档

相关文档