[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Не подключается MySQL
super-php
Инструкцию по ручной установке MySQL нашел здесь http://www.q2w3.ru/2011/03/07/3305/

Скачал MySQL Windows (x86, 32-bit), ZIP Archive
http://dev.mysql.com/downloads/mysql/#downloads

Распаковал его в f:\apache\mysql
user posted image

Переименовал файл my-default.ini в my.ini
user posted image

Файл my.ini

# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's 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 = f:/apache/mysql
datadir = f:/apache/mysql/data
port = 3306
# 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



В переменных среды указал путь к папке бин к апачу, фото ниже
f:\apache\mysq\bin;
user posted image

Захожу через командную строку, чтобы зайти в mysql и писать запросы, при любых вводах
выдает
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

Сбросить пароль не получается никак и запустить сам Майскл тоже, постоянно ошиьбка
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)


Сам MySQL тоже не выходит запустить, при вводе в командной строке:


f:\apache\mysql\bin>mysql
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)

Что делать?
super-php
При вводе в командной строке такого:


f:\apache\mysql\bin>net start mysql
Неправильное имя службы.

Для вызова дополнительной справки наберите NET HELPMSG 2185.


user posted image

user posted image
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.