array(2) { ["docs"]=> array(10) { [0]=> array(10) { ["id"]=> string(3) "428" ["text"]=> string(77) "Visual Studio 2017 单独启动MSDN帮助(Microsoft Help Viewer)的方法" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(8) "DonetRen" ["tagsname"]=> string(55) "Visual Studio 2017|MSDN帮助|C#程序|.NET|Help Viewer" ["tagsid"]=> string(23) "[401,402,403,"300",404]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511400964" ["_id"]=> string(3) "428" } [1]=> array(10) { ["id"]=> string(3) "427" ["text"]=> string(42) "npm -v;报错 cannot find module "wrapp"" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(4) "zzty" ["tagsname"]=> string(50) "node.js|npm|cannot find module "wrapp“|node" ["tagsid"]=> string(19) "[398,"239",399,400]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511400760" ["_id"]=> string(3) "427" } [2]=> array(10) { ["id"]=> string(3) "426" ["text"]=> string(54) "说说css中pt、px、em、rem都扮演了什么角色" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(12) "zhengqiaoyin" ["tagsname"]=> string(0) "" ["tagsid"]=> string(2) "[]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511400640" ["_id"]=> string(3) "426" } [3]=> array(10) { ["id"]=> string(3) "425" ["text"]=> string(83) "深入学习JS执行--创建执行上下文(变量对象,作用域链,this)" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(7) "Ry-yuan" ["tagsname"]=> string(33) "Javascript|Javascript执行过程" ["tagsid"]=> string(13) "["169","191"]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511399901" ["_id"]=> string(3) "425" } [4]=> array(10) { ["id"]=> string(3) "424" ["text"]=> string(30) "C# 排序技术研究与对比" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(9) "vveiliang" ["tagsname"]=> string(0) "" ["tagsid"]=> string(2) "[]" ["catesname"]=> string(8) ".Net Dev" ["catesid"]=> string(5) "[199]" ["createtime"]=> string(10) "1511399150" ["_id"]=> string(3) "424" } [5]=> array(10) { ["id"]=> string(3) "423" ["text"]=> string(72) "【算法】小白的算法笔记:快速排序算法的编码和优化" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(9) "penghuwan" ["tagsname"]=> string(6) "算法" ["tagsid"]=> string(7) "["344"]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511398109" ["_id"]=> string(3) "423" } [6]=> array(10) { ["id"]=> string(3) "422" ["text"]=> string(64) "JavaScript数据可视化编程学习(二)Flotr2,雷达图" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(7) "chengxs" ["tagsname"]=> string(28) "数据可视化|前端学习" ["tagsid"]=> string(9) "[396,397]" ["catesname"]=> string(18) "前端基本知识" ["catesid"]=> string(5) "[198]" ["createtime"]=> string(10) "1511397800" ["_id"]=> string(3) "422" } [7]=> array(10) { ["id"]=> string(3) "421" ["text"]=> string(36) "C#表达式目录树(Expression)" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(4) "wwym" ["tagsname"]=> string(0) "" ["tagsid"]=> string(2) "[]" ["catesname"]=> string(4) ".NET" ["catesid"]=> string(7) "["119"]" ["createtime"]=> string(10) "1511397474" ["_id"]=> string(3) "421" } [8]=> array(10) { ["id"]=> string(3) "420" ["text"]=> string(47) "数据结构 队列_队列实例:事件处理" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(7) "idreamo" ["tagsname"]=> string(40) "C语言|数据结构|队列|事件处理" ["tagsid"]=> string(23) "["246","247","248",395]" ["catesname"]=> string(12) "数据结构" ["catesid"]=> string(7) "["133"]" ["createtime"]=> string(10) "1511397279" ["_id"]=> string(3) "420" } [9]=> array(10) { ["id"]=> string(3) "419" ["text"]=> string(47) "久等了,博客园官方Android客户端发布" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(3) "cmt" ["tagsname"]=> string(0) "" ["tagsid"]=> string(2) "[]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511396549" ["_id"]=> string(3) "419" } } ["count"]=> int(200) } 222 [转]MySQL 5.1.56 for Windows XP/Vista/7 - 爱码网

Building a Web Server, for Windows

http://www.devside.net/guides/windows/mysql 

Requirements

  • None

Download

Our Configuration

  • %SYSTEMROOT% : C:\Windows
  • Install to : C:\www\mysql

Setup

  • Unpack as C:\www\mysql-5.1.56-win32
  • Rename directory C:\www\mysql-5.1.56-win32 to C:\www\mysql
  • Copy MySQL configuration file C:\www\mysql\my-medium.ini (or your choice of one of the other included my-*.ini files) to your %SYSTEMROOT% directory
  • Rename file %SYSTEMROOT%\my-medium.ini (or the copied over my-*.ini file) to my.ini
  • Edit %SYSTEMROOT%\my.ini
    • Under Sections "[client]" and "[mysqld]", edit...
      • socket = C:/www/tmp/mysql.sock
    • Under Section "[mysqld]", insert...
      • basedir = C:/www/mysql/
      • datadir = C:/www/mysql/data/

MySQL Server Binaries

MySQL ships with a number of server binaries to choose from. For standard/typical use and functionality, the preference is for server binary 'mysqld'.

  • mysqld.exe: Support for symbolic links, InnoDB and BDB transactional tables, and named pipes.
  • mysql-debug.exe: Compiled with full debugging and automatic memory allocation checking, symbolic links, and InnoDB and BDB transactional tables.

Startup

MySQL can be installed as a Service (automatic or manual start-up) or started as a standalone console application. The MySQL server can be configured to listen (and communicate) on all interfaces (0.0.0.0), the loopback (127.0.0.1), or any other address. The MySQL server can also be configured to skip networking (TCP/IP) and/or connect via named-pipes (sockets).

  • Install the MySQL process as a Service.
    • [Default] Listen on all interfaces (0.0.0.0)...
      • For MySQL automatic start (but not this first time):mysqld --installOr for MySQL manual start only:mysqld --install-manual
    • Other options (edit my.ini), section '[mysqld]', insert...
      • Listen on loopback only (127.0.0.1)...
        bind-address=127.0.0.1
      • Do not use TCP/IP (IP addresses and ports) for connections, use named-pipes...
        bind-address=localhostskip-networkingenable-named-pipe[Note option socket=C:/www/tmp/mysql.sock (default is 'socket=MySQL' for mysql and php) under sections '[client]' and '[mysqld]'; Make sure the specifed dir exists; Make sure to fill php.ini options mysql[i].default_socket = C:/www/tmp/mysql.sock and mysql[i].default_host = localhost; Use mysql[i]_connect('localhost:/www/tmp/mysql.sock', 'user', 'password')]
    • Start the MySQL Service...
      ...> NET START MySQL
  • Start MySQL as a standalone console application.
    • C:\www\mysql\bin> mysqld --standalone --console
    • [option '--standalone': Dummy option to start as a standalone server; can be omitted and have the same effect]
    • [option '--console': Write error output on screen (as opposed to error log)]
    • Other command line arguments...
      • IP address to bind to:--bind-address=127.0.0.1
      • Bypass TCP/IP with named pipes:--skip-networking --enable-named-pipe --socket=mysql.sock
      • [option '--skip-networking': do not use TCP/IP -- only valid for localhost]
      • [option '--enable-named-pipe': allows connections to other NT machines without being dependant on a specific network layer (TCP/IP or IPX)]
      • [option '--socket=...': name of nt-pipe/socket to use for option '--enable-named-pipe']

Cleanup

  • Create a password for the 'root' mysql account...
    • C:\www\mysql\bin> mysqladmin -u root password set-root-password-here
  • Delete all insecure users...
    • Access the MySQL prompt...
      • C:\www\mysql\bin> mysql -u root -p
    • Display all databases, accounts, and access controls to individual databases...
      • mysql> SHOW DATABASES;
      • mysql> SELECT User, Host, Password FROM mysql.user;
      • mysql> SELECT Host, Db, User, Select_priv FROM mysql.db;
    • Remove all initial accounts except 'root@localhost'; remove 'test' database and privileges set...
      • Remove anonymous users:mysql> DELETE FROM mysql.user WHERE User='';
      • Remove remote root:mysql> DELETE FROM mysql.user WHERE User='root' AND Host != 'localhost';
      • Remove test database:mysql> DROP DATABASE test;
      • Remove privileges on test database:mysql> DELETE FROM mysql.db WHERE Db = 'test' OR Db = 'test\\_%';
      • mysql> FLUSH PRIVILEGES;
    • Exit.
      • mysql> quit;

Running MySQL

All commands are run from the command line and directory C:\www\mysql\bin (unless the mentioned dir is under the PATH)

  • Enter the command-line interface...
    > mysql -u root -p
  • Stop the MySQL Service (one of two ways)...
    > NET STOP MySQL
    > mysqladmin -u root -p shutdown
  • Uninstall the MySQL Service...
    > mysqld --remove
  • Shutdown the standalone console MySQL application (one of two ways)...
    > mysqladmin -u root -p shutdown[Note that this is done from another cmd.exe window]
    Ctrl-C under the cmd.exe window it was started from

Help

All commands are run from the command line and directory C:\www\mysql\bin (unless the mentioned dir is under the PATH)

  • Display the MySQL command-line interface (shell) options...
    > mysql --help
  • Display mysqld options...
    > mysqld --help
  • Display MySQL version information...
    > mysqladmin -V
  • See what values a running MySQL server is using...
    > mysqladmin -u <user> -p<password> variables
  • Display information...
    > mysqladmin -u <user> -p<password> version status proc
  • Update password for MySQL user 'root' (from the MySQL shell)...
    mysql> UPDATE mysql.user SET Password=PASSWORD('root-password') WHERE User='root';
    mysql> FLUSH PRIVILEGES;

相关文章: