兄弟,不会把for linux的版本已经装在win2000里了吧!

解决方案 »

  1.   

    我装的不是for linux的版本,具体出现的情况在
     "关于mysql装好后的测试问题,请教大家(airforce)" 的帖子里:
     
        1. 运行mysqld-shareware.exe守护程序,它位于c:\mysql\bin下。    ?1. 我怎么在mysql\bin下找不到这个文件  2. 运行c:\mysql\bin\mysql。你将会看到有"mysql>"提示符的终端窗口。    ?2. 我运行后怎么看不到有"mysql>"提示符的终端窗口,那个窗口什么也没有,几秒后自动关闭 
      

  2.   

    原文在这里:http://www.asfocus.com/do/read_article.php?id=2201&type=php=== 此操作在redhat 6.x测试通过!=== 黑色是命令说明,红色为要打入命令,蓝色为运行结果或显示信息 1, 建立临时目录 mkdir /tmp/web 2, 进入临时目录 cd /tmp/web 3, 用lynx下载Mysql 3.23.22 Beta版 ( 或用netscape等工具下载 ) lynx http://www.mysql.com/Downloads/MySQL-3.23/mysql-3.23.22-beta.tar.gz 4, 解压缩 tar xfvz mysql-3.23.22-beta.tar.gz 5, 进入mysql目录 cd mysql-3.23.22-beta 6, 强制Mysql安装到 /usr/local/mysql ./configure --prefix=/usr/local/mysql 7, 开始编译Mysql ( 需要些时间...等待... ) make 8,安装Mysql make install 9, 将Mysql库所在目录添加到配置文件中.当Linux启动或者执行ldconfig命令时,将会在改配置文件搜索库文件。 echo "usr/local/mysql/lib/mysql">>/etc/ld.so.conf 10, 用ldconfig读取/etc/ld.so.conf文件中列出的目录,并对目录里找到的库文件进行缓冲。用grep筛选出Mysql库文件显示。 /sbin/ldconfig -v | grep libmysqlclient 执行结果显示: libmysqlclient.so.9 => libmysqlclient.so.9.0.0 11, 初始化Mysql数据库 /usr/local/mysql/bin/mysql_install_db 执行结果显示: Creating db table 
    Creating host table 
    Creating user table 
    Creating func table 
    Creating tables_priv table 
    Creating columns_priv table To start mysqld at boot time you have to copy support-files/mysql.server 
    to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! 
    This is done with: 
    /usr/local/mysql/bin/mysqladmin -u root -p password 'new-password' 
    /usr/local/mysql/bin/mysqladmin -u root -h Email.games.net.cn -p password 'new-password' 
    See the manual for more instructions. Please report any problems with the /usr/local/mysql/bin/mysqlbug script! The latest information about MySQL is available on the web at 
    http://www.mysql.com 
    Support MySQL by buying support/licenses at http://www.mysql.com/license.htmy. 
    12, 设置mysql启动文件 ( 0766 可执行权限所个人所定 ) chmod 0766 /usr/local/mysql/share/mysql/mysql.server 13, 复制到Linux默认系统执行目录改名为mysql cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysql 
    14, 将Mysql启动指令添加到/etc/rc.d/rc.local文件中,已便Linux每次启动后自动运行Mysql Server. echo "/etc/rc.d/init.d/mysql start">>/etc/rc.d/rc.local 15, 启动 Mysql /etc/rc.d/init.d/mysql start 16, 查看mysql版本 /usr/local/mysql/bin/mysqladmin version 执行结果显示: /usr/local/mysql/bin/mysqladmin Ver 8.8 Distrib 3.23.22-beta, for pc-linux-gnu on i586 
    TCX Datakonsult AB, by Monty Server version 3.23.22-beta-log 
    Protocol version 10 
    Connection Localhost via UNIX socket 
    UNIX socket /tmp/mysql.sock 
    Uptime: 26 min 13 sec Threads: 1 Questions: 36 Slow queries: 0 Opens: 10 Flush tables: 1 Open tables: 6 Queries per second avg: 0.023 17, 设置 Mysql Monitor 启动文件 cp /usr/local/mysql/bin/mysql /usr/bin 18, 启动 Mysql Monitor mysql 执行结果显示: Welcome to the MySQL monitor. Commands end with ; or \g. 
    Your MySQL connection id is 2 to server version: 3.23.22-beta-log Type 'help' for help. mysql> 19, 测试 Mysql mysql>use mysql; 执行结果显示: Reading table information for completion of table and column names 
    You can turn off this feature to get a quicker startup with -A Database changed mysql> 20, 显示初始化表 mysql> show tables; 执行结果显示: +-----------------+ 
    | Tables_in_mysql | 
    +-----------------+ 
    | columns_priv | 
    | db | 
    | func | 
    | host | 
    | tables_priv | 
    | user | 
    +-----------------+ 
    6 rows in set (0.00 sec) mysql> 21, 可继续用show status; 查看 MySQL 的运行信息, show variables; 查看 MySQL 的系统变量 
    或直接用quit或exit推出 Mysql Monitor 进行下一步 22, 返回/tmp/web目录 cd /tmp/web 23, 用lynx下载GD 1.8.3版 ( 或用netscape等工具下载 ) 让PHP支持GD ( 可选择 ) lynx http://www.boutell.com/gd/http/gd-1.8.3.tar.gz 24, 解压缩 tar xfvz gd-1.8.3.tar.gz 25, 进入gd目录 cd gd-1.8.3 26, 编译GD 1.8.3 make 27, 安装GD 1.8.3 make install 28, 用lynx下载iODBC 2.50.3版 ( 或用netscape等工具下载 ) 让PHP支持iODBC ( 可选择 ) lynx http://www.iodbc.org/dist/libiodbc-2.50.3.tar.gz 29, 解压缩 tar xfvz /tmp/web/libiodbc-2.50.3.tar.gz 30, 进入iodbc目录 cd /tmp/web/libiodbc-2.50.3 31, 制定配置iodbc安装到/usr/local/iodbc , odbc.ini安装到/usr/local/etc下 ./configure --prefix=/usr/local/iodbc --with-iodbc-inidir=/usr/local/etc 32, 编译iodbc make 33, 安装iodbc make install 34, 用lynx下载imap-4.5版 ( 或用netscape等工具下载 ) 让PHP支持IMAP ( 可选择 ) lynx ftp://ftp.cac.washington.edu/imap/old/imap-4.5.tar.Z 35, 解压缩 tar xfvZ /tmp/web/imap-4.5.tar.Z /usr/local 36, 进入imap目录 cd /usr/local/imap-4.5 37, 编译imap 4.5 有3种选项 make sl4 Linux using -lshadow to get the crypt() function 
    make sl5 Linux with shadow passwords, no extra libraries 
    make slx Linux using -lcrypt to get the crypt() function 我想大家一看就明白了,至于用那个你自己选吧!:) 我选的是 make slx 38, 修改/etc/inetd.conf vi /etc/inetd.conf 去处pop-3和imap前面的#号 39, 修改vi /etc/services vi /etc/services 去处spop3和simap前面的#号 40, 重新启动inetd进程 /etc/rc.d/init.d/inet restart 41, 复制执行文件 
    cp ipopd/ipop3d /usr/sbin 
    cp imapd/imapd /usr/sbin 42, 用lynx下载Apache 1.3.12版 ( 或用netscape等工具下载 ) lynx http://www.apache.org/dist/apache_1.3.12.tar.gz 43, 解压缩 tar xfvz /tmp/web/apache_1.3.12.tar.gz 44, 进入apache目录 cd /tmp/web/apache_1.3.12 45, 配置apache安装到 /www 下 ./configure --prefix=/www 
    46, 用lynx下载php 4.0.1pl2版 ( 或用netscape等工具下载 ) lynx http://www.php.net/do_download.php?download_file=php-4.0.1pl2.tar.gz&source_site=ca.php.net 47, 配置 php MAKEFILE ./configure --with-apache=/tmp/web/apache_1.3.12 \ 
    --with-mysql=/usr/local/mysql \ 
    --with-gd=/tmp/web/gd-1.8.3 \ 
    --with-iodbc=/usr/local/iodbc \ 
    --with-imap=/usr/local/imap-4.5 \ 
    --with-charset=gb2312 \ 
    --with-xml \ 
    --enable-url-includes \ 
    --enable-track-vars \ 
    --disable-debug \ 
    --enable-ftp ========参数说明========= with-apache 支持Apache with-mysql 支持Mysql with-gd 支持gd with-iodbc 支持iodbc with-mcrypt 支持Mcrypt with-imap 支持imap with-charset=gb2312 让charset默认为中文 with-xml 支持XML enable-url-includes 开启 程序可以引入 (include) 远端的 HTTP 或 FTP 服务器中的文件 enable-track-vars 开启 追踪 HTTP_GET_VARS、HTTP_POST_VARS 及 HTTP_COOKIE_VARS 三个变量 disable-debug 关闭 Debug 模式 enable-ftp 开启 FTP 支持 ===用户可按各自所需删减=== 
    48, 编译PHP4 make 49, 安装PHP4 make install 50, 复制生成 php.ini cp php.ini-dist /usr/local/lib/php.ini 51, 返回Apache目录 并配置ApacheMakeFile cd /root/web/apache_1.3.12 ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a 52, 编译 Apache 1.3.12 make 53, 安装 Apache 1.3.12 make install 54, 修改Apache 配置文件 vi /www/conf/httpd.conf 将 
    # AddType application/x-httpd-php .php 
    # AddType application/x-httpd-php-source .phps 这2行去掉# 再加入一行 AddType application/x-httpd-php .php3 让系统支持以php3结尾的php脚本程序 加入php为默认首页 DirectoryIndex index.html index.php3 index.php 55,复制Apache 启动文件到redhat默认启动目录 让系统从新启动的时候自动运行 cp /www/bin/apachectl /etc/rc.d/init.d/httpd 56, 启动Apache /www/bin/apachectl start 或 /etc/rc.d/init.d/httpd start 57, 建立php信息文件 vi php_info.php <?php 
    phpinfo(); 
    ?> 58, 查看php配置信息 lynx http://localhost/php_info.php 59, 按你系统 下载 Zend Optimizer ( php加速器 ) 有以下几个版本: x86 Linux glibc2.1-based systems (tested on Red Hat 6.2, Red Hat 6.1, Mandrake 7.0, Slackware 7.0 and SuSE 6.2). x86 Linux glibc2.0-based systems (tested on Red Hat 5.2 and SuSE 6.1) x86 Linux libc5-based systems (tested on Slackware 4.0 and Debian 1.3.1r8) FreeBSD 3.4 and 4.0 Sparc Solaris 2.6, 7 and 8 Windows NT 4.0 Lynx http://www.zend.com/download.php 在Zend 下在Optimizer最新版需要先注册为他们的用户。 60, 解压缩 tar xfvz ZendOptimizer-RC1-Linux-glibc2.1.tar.gz 61, 建立Zend默认目录 mkdir /usr/local/Zend/lib 62, 复制 ZendOptimizer.so 到Zend默认目录 cp /tmp/web/ZendOptimizer-RC1-Linux-glibc2.1/ZendOptimizer.so /usr/local/Zend/lib 63, 在php.ini加入 Zend Optimizer 参数 vi /usr/local/lib/php.ini 在最后面加上 [Zend Optimizer RC1 0.99] 
    zend_optimizer.optimization_level=15 
    zend_extension="/usr/local/Zend/lib/ZendOptimizer.so" 64, 从新启动 apache 服务 /www/bin/apachectl restart 执行显示结果: /www/bin/apachectl restart: httpd restarted 
    65, 在此浏览 http://localhost/php_info.php lynx http://localhost/php_info.php 你将看到 with Zend Optimizer v0.99, Copyright (c) 1998-2000, by Zend Technologies PHP加速器已经工作! XML Support active XML 支持 ODBC Support enabled 
    Active Persistent Links 0 
    Active Links 0 
    ODBC library iodbc iodbc 支持 MySQL Support enabled 
    Active Persistent Links 0 
    Active Links 0 
    Client API version 3.23.22-beta Mysql 支持 imap 
    IMAP Support enabled 
    IMAP c-Client Version 4.1 IMAP 支持 gd 
    GD Support enabled 
    GD Version 1.6.2 or higher 
    FreeType Support enabled 
    FreeType Linkage with TTF library 
    PNG Support enabled GD 支持 Additional Modules 
    ftp FTP 支持 呵呵,怎么样??兴奋么?够用了吧? 快去享受php吧! 哎...本来是重新装机器想给大家写个简单配置的例子,没想到一写就写了这么多... 
    ...累了...睡觉去了...哦..对了..希望对大家有帮助!enjoy it! :)
    作者:Wuxuehui 
    Email:[email protected] 
    ICQ:2759606 
    OICQ:178927 
    中华技术网: http://www.netqu.com 
    Welcome to My Personal Website: http://wuxuehui.yeah.net日期:2000年8月11日 中华技术网整理发布 http://www.asfocus.com http://www.netqu.com
      

  3.   

    You must state \mysql\bin\winmysqladmin.exe
    It input Password and user , you input root and root OK!
    then do-msdos \mysql\bin\mysql 
    if don't look mysql> then \mysql\bin\mysql -u root -proot
      

  4.   

    cexo_wxf_ss, I used the way what you said, but in win2000, it said:
      ERROR 2003: Can't connect to MySQL server on 'localhost' <10061>
    in Ms-dos, it said: This program can't be run in this mode. 
    mysql still can't start, what's wrong?
      

  5.   

    use: net start mysql 
    then see whether it can start successful,
    if start fail, reinstall your mysql, 
      

  6.   

    到mysql\bin目录下,运行mysqld-nt,然后就可以运行mysql了!
    如果你想让它自启动的话,运行mysqld-nt --install
      

  7.   

    win2000\nt下面的mysql要装在c:盘,不然会有问题。