Ошибка could not connect to the database

В случае неправильной настройки соединения Joomla с БД чаще всего возникают такие ошибки:
Database Error: Unable to connect to the database:Could not connect to MySQL
или
Database Error: Unable to connect to the database:Could not connect to database

Первая означает, что скрипты Joomla не смогли подключиться к серверу баз данных. Проверьте, правильно ли указаны сервер баз данных, пользователь и пароль. Для этого в папке с именем сайта найдите файл configuration.php, откройте его и найдите в нем строки:

var $host = ''; 
var $user = '';
var $password = '';

Значения параметров должны быть такими (указывать внутри кавычек):
$host — localhost,
$user — имя пользователя БД (список созданных пользователей можно посмотреть в разделе «Управление / Управление базами MySql» контрольной панели),
$password — пароль пользователя БД.

Вторая ошибка означает, что либо база данных, которая указана в файле configuration.php для использования Joomla не существует, либо указан неправильный префикс для таблиц. Откройте configuration.php и найдите в нем строки:

var $db = '';<br />
var $dbprefix = '';

Значения параметров должны быть такими (указывать внутри кавычек):
$db — правильно указанное имя существующей базы данных (список созданных баз можно посмотреть в разделе «Управление / Управление базами MySql» контрольной панели),
$dbprefix — в большинстве случаев это «jos_» (если вы не указывали другой префикс при установке движка).

Если все эти настройки указаны правильно, но ошибка все равно возникает, обратитесь в службу технической поддержки, создав заявку в разделе «Техподдержка / Заявки» контрольной панели аккаунта.

Примечания:

  1. Названия параметров в разных версиях Joomla могут отличаться. Например, в старых версиях они назывались так: $mosConfig_host, $mosConfig_user, $mosConfig_password, $mosConfig_db и т.п.

  2. Если при сохранении исправленного файла вы увидите ошибку записи файла, смените права для файла с текущих на 0644 (это делается с помощью иконки «Сменить права» в файловом менеджере контрольной панели) и заново исправьте файл.

Moderator: General Support Moderators

jdhintl

Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Nov 14, 2013 8:48 pm

Could not connect to the database. Connector returned number

New installation of Joomla 3.2
On the database tab, I am receiving this error:
Could not connect to the database. Connector returned number: Could not connect to MySQL.

The user name and password is correct for my ftp login to the site from my web hosting provider.

What can be causing this error?


User avatar

toivo

Joomla! Master
Joomla! Master
Posts: 16148
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Could not connect to the database. Connector returned nu

Post

by toivo » Thu Nov 14, 2013 10:41 pm

The username, password, the database name and the hostname of the MySQL server have to be correct, too.

Toivo Talikka, Global Moderator


jdhintl

Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Thu Nov 14, 2013 8:48 pm

Re: Could not connect to the database. Connector returned nu

Post

by jdhintl » Thu Nov 14, 2013 10:46 pm

where do I find the database name and the host name of the MYSQL server?
I am using Network Solutions as my webhost.


User avatar

toivo

Joomla! Master
Joomla! Master
Posts: 16148
Joined: Thu Feb 15, 2007 5:48 am
Location: Sydney, Australia

Re: Could not connect to the database. Connector returned nu

Post

by toivo » Thu Nov 14, 2013 10:50 pm

The hosting provider should give them to you.

Toivo Talikka, Global Moderator


caroline52

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Nov 29, 2013 5:56 pm

Re: Could not connect to the database. Connector returned nu

Post

by caroline52 » Sat Nov 30, 2013 10:08 pm

I am having the same problem and don’t know what to do.
I have tried for days now — I am installing on my mac


User avatar

JAVesey

Joomla! Hero
Joomla! Hero
Posts: 2421
Joined: Tue May 14, 2013 1:21 pm
Location: Cardiff, Wales, UK
Contact:

Re: Could not connect to the database. Connector returned nu

Post

by JAVesey » Sat Nov 30, 2013 11:24 pm

caroline52 wrote:I am installing on my mac

How are you installing on your Mac? trying to use the in-build Mac software is not that easy.

I would strongly recommend downloading and installing MAMP on your Mac and then uploading/installing to that.

John V
Cardiff, Wales, UK
Joomla 3.10.11 «live» site on PHP 8.1.18
Joomla 3.10.11 and Joomla 4.3.1 on MAMP Pro with PHP 8.1.13


caroline52

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Fri Nov 29, 2013 5:56 pm

Re: Could not connect to the database. Connector returned nu

Post

by caroline52 » Mon Dec 02, 2013 11:10 pm

Yes i am using mac pre installed apache etc — what are the problems with this and is it easy to install mamp?


krishunt

Joomla! Enthusiast
Joomla! Enthusiast
Posts: 124
Joined: Wed Feb 08, 2012 8:37 pm

Re: Could not connect to the database. Connector returned nu

Post

by krishunt » Mon Jan 20, 2014 9:52 pm

Using phpMyAdmin, you need to create a database for Joomla to use FIRST, and then create a user (with a password) that can access that database.


dkhamilto

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri May 02, 2014 4:08 am

Re: Could not connect to the database. Connector returned nu

Post

by dkhamilto » Fri May 02, 2014 4:19 am

I get the same error «Could not connect to the database. Connector returned number: Could not connect to MySQL.» when running the install of Joomla. I created the database, user, and permission via Sequel Pro. The logon works fine there but fails in the Joomla screen. This is on Mac OS X 10.8 using native apache2 and php libraries that work fine in the DOCUMENTS directory. Are there any log files to look at with Joomla and the install? Any config files> I found 1 configuration.php and updated the DB, user, password, prefix there.


ejpb

Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Thu Jul 10, 2014 9:59 am

Re: Could not connect to the database. Connector returned nu

Post

by ejpb » Thu Jul 10, 2014 10:14 am

I got this error message also. I installed on a CentOS 7 with the database on a separate server and I found in the syslog messages about SELinux and how to remedy it. I ran

Code: Select all

sudo setsebool -P httpd_unified 1
sudo setsebool -P httpd_can_network_connect_db 1

After that it worked ok.


speru

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Jan 05, 2010 9:34 am
Location: United Kingdom
Contact:

Re: Could not connect to the database. Connector returned number

Post

by speru » Mon Aug 08, 2016 6:46 pm

For anyone else having this issue I would check that your password is not too long. If you are using a password manager it is easy to get carried away and create a mahusive password.
That will throw exactly the same error.


User avatar

iwankumara

Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Tue Apr 29, 2008 9:08 am
Contact:

Re: Could not connect to the database. Connector returned number

Post

by iwankumara » Tue Nov 01, 2016 6:48 pm

Hi guys..

I found the answer..
Usually, we just do COPY AND PASTE the database name or/and username… it’s WRONG !!!
Because sometimes yor server setting provide PREFIX before the databasename/username such as ..empty space.
and it is different with your typed databse/username, but we dont realize it..because it is just an empty space.

example : database name : «kontol123″ and the username :»jembutku321»
The you copy the database and paste it into the empty form when doing installation right?
Then sometimes it will appears like this : » kontol123″ —> there’s an ampty space before «K»..

Please recheck your paste..

cheers

Titit Kucing


NoeyLab

Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Nov 14, 2016 9:05 am

Re: Could not connect to the database. Connector returned number

Post

by NoeyLab » Mon Nov 14, 2016 9:18 am

I created the database user and permission via Sequel Pro.


nick-birch

Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Fri Feb 05, 2010 9:08 pm

Re: Could not connect to the database. Connector returned number

Post

by nick-birch » Wed Dec 07, 2016 1:43 pm

speru wrote:For anyone else having this issue I would check that your password is not too long. If you are using a password manager it is easy to get carried away and create a mahusive password.
That will throw exactly the same error.

This was spot on for me. I had used a password generator and it produced a long and complex password.
After entering a shortr one that still passed the 70% score required, everything worked properly. Thanks speru.


jigneshaakoliya

Joomla! Intern
Joomla! Intern
Posts: 52
Joined: Mon Dec 12, 2016 11:23 am
Contact:

Re: Could not connect to the database. Connector returned number

Post

by jigneshaakoliya » Mon Dec 12, 2016 12:55 pm

Hi,
You must see if there are any white spaces in username or password if you are trying to do copy/past.

Many times, it is only issue that we didn’t recognise for long time. and use password generator to create strong password.

Thanks
Jignesh Aakoliya


seagasm

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jul 23, 2013 12:45 am
Location: Australia/New Zealand

Re: Could not connect to the database. Connector returned number

Post

by seagasm » Fri Dec 30, 2016 8:59 pm

Good morning and a Happy New Year. I have installed the latest Xampp and have downloaded the latest Joomla version. The first installation is a sample to play with but it appears I cannot get past stage 2. An error has occurred

«Error Could not connect to the database. Connector returned number: Could not connect to MySQL»

I recall some years ago when I was using Joomla, a similar error occurred but for the life of me, I have forgotten how to correct the problem. Generally speaking, I used to install everything and away it would go without problems. Maybe there is a config file I should edit?

I am running W7 Professional 32bit

Thank you in advance


speru

Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Jan 05, 2010 9:34 am
Location: United Kingdom
Contact:

Re: Could not connect to the database. Connector returned number

Post

by speru » Fri Dec 30, 2016 10:39 pm

As you do not mention it, the first obvious question is whether you have firstly created the database and added the user to it that is going to be used in the connection.
The Joomla installer itself does not create the database or the user.


seagasm

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jul 23, 2013 12:45 am
Location: Australia/New Zealand

Re: Could not connect to the database. Connector returned number

Post

by seagasm » Fri Dec 30, 2016 11:03 pm

We are talking about a first creation/installation of a web site which I unfortunately did not mention. As I understand it, when all files are unpacked into a named htdocs Xampp folder in this case «sample», then the web site «sample» is created locally using «http://localhost/sample/index.php». The installation process is started but does not go past the second step. The second step asks me what the database name is to be and should create it once I click «Next», this is correct isn’t it?


seagasm

Joomla! Apprentice
Joomla! Apprentice
Posts: 7
Joined: Tue Jul 23, 2013 12:45 am
Location: Australia/New Zealand

Re: Could not connect to the database. Connector returned number

Post

by seagasm » Sat Dec 31, 2016 12:01 am

I found the problem, enter username as «root», no password, and away it went creating database etc.

I guess I will have to swat up on my php.

Cheers


Falcon22

Joomla! Intern
Joomla! Intern
Posts: 65
Joined: Wed Apr 11, 2007 4:16 am

Re: Could not connect to the database. Connector returned number

Post

by Falcon22 » Wed Apr 05, 2017 1:07 am

YES for me it was the empty space after the database username, so if you copy and paste check for spaces before and after.



Return to “Installation Joomla! 3.x”


Jump to

  • Joomla! Announcements
  • ↳   Announcements
  • ↳   Announcements Discussions
  • Joomla! 4.x — Ask Support Questions Here
  • ↳   General Questions/New to Joomla! 4.x
  • ↳   Installation Joomla! 4.x
  • ↳   Administration Joomla! 4.x
  • ↳   Migrating and Upgrading to Joomla! 4.x
  • ↳   Extensions for Joomla! 4.x
  • ↳   Security in Joomla! 4.x
  • ↳   Templates for Joomla! 4.x
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 4.x
  • ↳   Language — Joomla! 4.x
  • ↳   Performance — Joomla! 4.x
  • ↳   Joomla! 4.x Coding
  • Joomla! 3.x — Ask Support Questions Here
  • ↳   General Questions/New to Joomla! 3.x
  • ↳   Installation Joomla! 3.x
  • ↳   Joomla! 3.x on IIS webserver
  • ↳   Administration Joomla! 3.x
  • ↳   Access Control List (ACL) in Joomla! 3.x
  • ↳   Migrating and Upgrading to Joomla! 3.x
  • ↳   Security in Joomla! 3.x
  • ↳   Extensions for Joomla! 3.x
  • ↳   Templates for Joomla! 3.x
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 3.x
  • ↳   Language — Joomla! 3.x
  • ↳   Performance — Joomla! 3.x
  • ↳   Joomla! 3.x Coding
  • Joomla! Versions which are End of Life
  • ↳   Joomla! 2.5 — End of Life 31 Dec 2014
  • ↳   General Questions/New to Joomla! 2.5
  • ↳   Installation Joomla! 2.5
  • ↳   Joomla! 2.5 on IIS webserver
  • ↳   Administration Joomla! 2.5
  • ↳   Access Control List (ACL) in Joomla! 2.5
  • ↳   Migrating and Upgrading to Joomla! 2.5
  • ↳   Security in Joomla! 2.5
  • ↳   Extensions for Joomla! 2.5
  • ↳   Templates for Joomla! 2.5
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 2.5
  • ↳   Language — Joomla! 2.5
  • ↳   Performance — Joomla! 2.5
  • ↳   Joomla! 1.5 — End of Life Sep 2012
  • ↳   General Questions/New to Joomla! 1.5
  • ↳   Installation 1.5
  • ↳   Joomla! 1.5 on IIS webserver
  • ↳   Administration 1.5
  • ↳   Migrating and Upgrading to Joomla! 1.5
  • ↳   Security in Joomla! 1.5
  • ↳   Extensions for Joomla! 1.5
  • ↳   Templates for Joomla! 1.5
  • ↳   Search Engine Optimization (Joomla! SEO) in Joomla! 1.5
  • ↳   Language — Joomla! 1.5
  • ↳   Performance — Joomla! 1.5
  • ↳   Joomla! 1.0 — End of Life 22 July 2009
  • ↳   Installation — 1.0.x
  • ↳   Upgrading — 1.0.x
  • ↳   Security — 1.0.x
  • ↳   3rd Party/Non Joomla! Security Issues
  • ↳   Administration — 1.0.x
  • ↳   Extensions — 1.0.x
  • ↳   Components
  • ↳   Modules
  • ↳   Plugins/Mambots
  • ↳   WYSIWYG Editors — 1.0.x
  • ↳   Integration & Bridges — 1.0.x
  • ↳   phpbb — Joomla! Integration
  • ↳   Templates & CSS — 1.0.x
  • ↳   Language — 1.0.x
  • ↳   Joom!Fish and Multilingual Sites
  • ↳   Performance — 1.0.x
  • ↳   General Questions — 1.0.x
  • Joomla! International Language Support
  • ↳   International Zone
  • ↳   Arabic Forum
  • ↳   تنبيهات هامة
  • ↳   الدروس
  • ↳   4.x جوملا!
  • ↳   جوملا! 1.6/1.7
  • ↳   الأسئلة الشائعة
  • ↳   التثبيت و الترقية
  • ↳   الحماية — و تحسين السرعة والأداء
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   تعريب جوملا! و الإضافات البرمجية
  • ↳   القوالب و التصميم
  • ↳   صداقة محركات البحث
  • ↳   القسم العام
  • ↳   1.5 !جوملا
  • ↳   الأسئلة الشائعة
  • ↳   التثبيت و الترقية
  • ↳   الحماية — و تحسين السرعة والأداء
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   تعريب جوملا! و الإضافات البرمجية
  • ↳   القوالب و التصميم
  • ↳   صداقة محركات البحث
  • ↳   القسم العام
  • ↳   جوملا! 1.0
  • ↳   الأسئلة الشائـعة
  • ↳   التثبيت
  • ↳   لوحة التحكم
  • ↳   الإضافات البرمجية
  • ↳   الإضافات المعرّبة
  • ↳   القوالب و التصميم
  • ↳   الحماية — تحسين السرعة والأداء — صداقة محركات البحث
  • ↳   القسم العام
  • ↳   القسم العام
  • ↳   !عرض موقعك بجوملا
  • ↳   الأرشيف
  • ↳   Bengali Forum
  • ↳   Bosnian Forum
  • ↳   Joomla! 1.5
  • ↳   Instalacija i prvi koraci
  • ↳   Ekstenzije
  • ↳   Templejti
  • ↳   Moduli
  • ↳   Prevodi i dokumentacija
  • ↳   Joomla! 1.7 / Joomla! 1.6
  • ↳   Catalan Forum
  • ↳   Notícies
  • ↳   Temes sobre l’administració
  • ↳   Temes sobre la traducció
  • ↳   Components, mòduls i joombots
  • ↳   Temes de disseny
  • ↳   Webs realitzades amb Joomla!
  • ↳   Offtopics
  • ↳   Chinese Forum
  • ↳   Croatian Forum
  • ↳   Danish Forum
  • ↳   Meddelelser
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x (Anbefalet til nye installationer. Nyeste funktionalitet)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Ældre versioner (disse vedligeholdes ikke længere fra officiel side)
  • ↳   Joomla! 2.5 (Supporteres indtil 31. dec. 2014)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Joomla 1.5 (Tidligere langtidssupporteret version indtil sep. 2012)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Plugins
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Joomla 1.0 (Udgået version, der blev afløst af 1.5 i 2008)
  • ↳   Installation, backup, opdatering og flytning — Godt igang
  • ↳   Administration — Generel brug
  • ↳   Komponenter, Moduler og Mambots
  • ↳   Template, CSS og Design
  • ↳   Nethandel, betaling m.m.
  • ↳   Oversættelser (lokalisering)
  • ↳   Joomla brugergrupper i Danmark
  • ↳   JUG Kolding
  • ↳   JUG København
  • ↳   JUG Odense
  • ↳   JUG Århus
  • ↳   JUG Sorø
  • ↳   Kommerciel (betalt) hjælp ønskes
  • ↳   SEO
  • ↳   FAQ — Dokumentation og vejledninger
  • ↳   Vis dit websted
  • ↳   Afviste ‘Vis dit websted’ indlæg
  • ↳   Diverse (Off topic)
  • ↳   Dutch Forum
  • ↳   Aankondigingen
  • ↳   Algemene vragen
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Installatie 3.x
  • ↳   Extensies 3.x
  • ↳   Templates 3.x
  • ↳   Joomla! 2.5
  • ↳   Installatie 2.5
  • ↳   Componenten 2.5
  • ↳   Modules 2.5
  • ↳   Plugins 2.5
  • ↳   Templates 2.5
  • ↳   Joomla! 1.5
  • ↳   Installatie
  • ↳   Componenten
  • ↳   Modules
  • ↳   Plugins
  • ↳   Templates
  • ↳   Joomla! 1.0
  • ↳   Installatie 1.0.x
  • ↳   Componenten 1.0.x
  • ↳   Modules 1.0.x
  • ↳   Mambots 1.0.x
  • ↳   Templates 1.0.x
  • ↳   Vertalingen
  • ↳   Offtopic
  • ↳   Show jouw website
  • ↳   Filipino Forum
  • ↳   International Support Center
  • ↳   Pinoy General Discussion & Archives
  • ↳   Site Showcase
  • ↳   Events
  • ↳   Design Tips and Tricks
  • ↳   Tsismis Zone
  • ↳   Pinoy Translation Zone
  • ↳   Pinoy Forum Archives
  • ↳   Joomla! Philippines Local Forum www.joomla.org.ph
  • ↳   Finnish Forum
  • ↳   French Forum
  • ↳   Les annonces!
  • ↳   Le bistrot!
  • ↳   L’expo!
  • ↳   J! 4.x — L’atelier!
  • ↳   J! 3.x — L’atelier!
  • ↳   3.x — Questions générales, nouvel utilisateur
  • ↳   3.x — Installation, migration et mise à jour
  • ↳   3.x — Sécurité et performances
  • ↳   3.x — Extensions tierce partie
  • ↳   3.x — Templates et design
  • ↳   3.x — Développement
  • ↳   3.x — Ressources
  • ↳   J! 2.5.x — L’atelier!
  • ↳   2.5 — Questions générales
  • ↳   2.5 — Installation, migration et mise à jour
  • ↳   2.5 — Sécurité et performances
  • ↳   2.5 — Extensions tierce partie
  • ↳   2.5 — Templates et design
  • ↳   2.5 — Développement
  • ↳   2.5 — Ressources
  • ↳   J! 1.5.x — L’atelier!
  • ↳   1.5 — Questions générales
  • ↳   1.5 — Installation, migration et mise à jour
  • ↳   1.5 — Sécurité et performances
  • ↳   1.5 — Extensions tierce partie
  • ↳   1.5 — Templates et design
  • ↳   1.5 — Développement
  • ↳   1.5 — Ressources
  • ↳   J! 1.0.x — L’atelier!
  • ↳   1.0 — Questions générales
  • ↳   1.0 — Installation et mise à jour
  • ↳   1.0 — Sécurité
  • ↳   1.0 — Extensions tierce partie
  • ↳   1.0 — Templates et design
  • ↳   1.0 — Développement
  • ↳   1.0 — Ressources
  • ↳   Besoin d’un professionel ?
  • ↳   Extensions Open Source pour Joomla!
  • ↳   German Forum
  • ↳   Ankündigungen
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Joomla! 2.5
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Joomla! 1.5
  • ↳   Allgemeine Fragen
  • ↳   Installation und erste Schritte
  • ↳   Komponenten, Module, Plugins
  • ↳   Template, CSS und Designfragen
  • ↳   Entwicklerforum
  • ↳   Zeige Deine Webseite
  • ↳   Professioneller Service
  • ↳   Sonstiges (Offtopic)
  • ↳   Archiv
  • ↳   Joomla! 1.0
  • ↳   Allgemeine Fragen 1.0.x
  • ↳   Installation und erste Schritte 1.0.x
  • ↳   Komponenten, Module, Mambots 1.0.x
  • ↳   Template, CSS und Designfragen 1.0.x
  • ↳   Entwicklerforum 1.0.x
  • ↳   Zeige Deine Webseite 1.0.x
  • ↳   Greek Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Joomla! 2.5.x
  • ↳   Joomla! 1.5.x
  • ↳   Joomla! 1.0.x
  • ↳   Hebrew Forum
  • ↳   Indic Languages Forum
  • ↳   Indonesian Forum
  • ↳   FAQ
  • ↳   Bantuan
  • ↳   Komponen
  • ↳   Modul
  • ↳   Template
  • ↳   Diskusi
  • ↳   Italian Forum
  • ↳   Guide
  • ↳   Traduzioni
  • ↳   Componenti — Moduli — Plugins
  • ↳   Template — Grafica
  • ↳   Notizie
  • ↳   Prodotti Open Source per Joomla!
  • ↳   Richieste professionali
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Joomla! 2.5.x
  • ↳   Joomla! 1.x
  • ↳   Latvian Forum
  • ↳   Lithuanian Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 1.5
  • ↳   Joomla! 1.7 / Joomla! 1.6
  • ↳   Joomla! 1.0
  • ↳   Vertimai ir Kalba
  • ↳   Malaysian Forum
  • ↳   Solved
  • ↳   Norwegian Forum
  • ↳   Informasjon
  • ↳   Arkiverte annonseringer
  • ↳   FAQ — Ofte spurte spørsmål
  • ↳   Arkiv
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Netthandel, betaling m.m.
  • ↳   VirtueMart
  • ↳   Andre nettbutikkløsninger
  • ↳   Generelt
  • ↳   Oversettelser
  • ↳   Fremvisning av sider (Show off)
  • ↳   Avviste fremvisninger
  • ↳   Diverse (off topic)
  • ↳   Kommersiell hjelp ønskes
  • ↳   Eldre versjoner av Joomla!
  • ↳   Joomla! 1.0
  • ↳   Administrasjon/installasjon
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/mambots
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Joomla! 1.5
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Joomla! 2.5
  • ↳   Administrasjon/installasjon
  • ↳   Migrering/Oppdatering
  • ↳   Template, CSS og design
  • ↳   Komponenter/moduler/programutvidelser
  • ↳   Sikkerhet
  • ↳   Generelt
  • ↳   Persian Forum
  • ↳   قالب ها
  • ↳   مدیریت
  • ↳   سوالهای عمومی
  • ↳   نصب
  • ↳   مامبوت ها
  • ↳   ماژولها
  • ↳   کامپوننت ها
  • ↳   Polish Forum
  • ↳   Instalacja i aktualizacja
  • ↳   Administracja
  • ↳   Komponenty, moduły, wtyczki
  • ↳   Szablony
  • ↳   Paczta i Podziwiajta
  • ↳   Modyfikacje i własne rozwiązania
  • ↳   Tłumaczenia
  • ↳   FAQ
  • ↳   Tips&Tricks
  • ↳   Dokumentacja
  • ↳   Profesjonalne usługi
  • ↳   Portuguese Forum
  • ↳   Componentes, módulos e mambots
  • ↳   Programação e desenvolvimento
  • ↳   Segurança
  • ↳   Sites dos usuários
  • ↳   Off-topic
  • ↳   Tradução
  • ↳   Templates
  • ↳   Romanian Forum
  • ↳   Traduceri
  • ↳   Russian Forum
  • ↳   Объявления по Joomla!
  • ↳   Безопасность Joomla!
  • ↳   Joomla 4.x — Задайте здесь свой вопрос по поддержке
  • ↳   Joomla 3.x — Задайте здесь свой вопрос по поддержке
  • ↳   Общие вопросы/Новичок в Joomla! 3.x
  • ↳   Установка Joomla! 3.x
  • ↳   Миграция и переход на Joomla! 3.x
  • ↳   Расширения для Joomla! 3.x
  • ↳   Многоязычные веб-сайты на Joomla 3.x
  • ↳   Joomla 2.5 — Задайте здесь свой вопрос по поддержке
  • ↳   Общие вопросы/Новичок в Joomla! 2.5
  • ↳   Установка Joomla! 2.5
  • ↳   Расширения для Joomla! 2.5
  • ↳   Русский язык Joomla! 2.5
  • ↳   Serbian/Montenegrin Forum
  • ↳   Tehnička pitanja
  • ↳   Instalacija i početnička pitanja
  • ↳   Šabloni
  • ↳   Prevod i dokumentacija
  • ↳   Ćaskanje
  • ↳   Bezbednost
  • ↳   Joomla! dodaci
  • ↳   Pravna pitanja
  • ↳   Arhiva
  • ↳   Joomla! Događaji i Zajednica
  • ↳   Izlog (spisak) sajtova radjenih u Joomla! CMS-u
  • ↳   Profesionalne usluge
  • ↳   Slovak Forum
  • ↳   Spanish Forum
  • ↳   Joomla! 4.x
  • ↳   Joomla! 3.x
  • ↳   Migración y actualización a Joomla 3.x
  • ↳   Versiones de Joomla! obsoletas
  • ↳   Joomla! 2.5
  • ↳   Joomla! 1.5
  • ↳   Extensiones
  • ↳   Plantillas (templates) y diseño
  • ↳   Idioma y traducciones
  • ↳   SEO para Joomla!
  • ↳   Seguridad y rendimiento
  • ↳   Productos de Código Abierto para Joomla!
  • ↳   Servicios profesionales
  • ↳   Salón de la comunidad Ñ
  • ↳   Swedish Forum
  • ↳   Meddelanden
  • ↳   Forum Joomla! 4.x
  • ↳   Forum Joomla! 3.x
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Äldre versioner
  • ↳   Forum Joomla! 1.0
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och Mambots
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 1.7 / Joomla! 1.6
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 1.5
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Forum Joomla! 2.5
  • ↳   Allmänna frågor
  • ↳   Användning och administration
  • ↳   Installation, backup och säkerhet
  • ↳   Komponenter, moduler och plugin
  • ↳   Mallar (templates) och design
  • ↳   Översättning
  • ↳   Webbplatser gjorda i Joomla
  • ↳   Webbplatser J! 3.x
  • ↳   Webbplatser J! 2.5
  • ↳   Webbplatser Joomla! 1.7 / Joomla! 1.6
  • ↳   Webbplatser J! 1.5
  • ↳   Webbplatser J! 1.0
  • ↳   Kommersiell hjälp önskas
  • ↳   Diverse (off topic)
  • ↳   Tamil Forum
  • ↳   Thai Forum
  • ↳   โชว์เว็บไซต์ของคุณที่สร้างด้วยจูมล่า
  • ↳   เคล็ดลับการใช้งานส่วนต่างๆ เกี่ยวกับจ&#
  • ↳   คอมโพเน้นท์ โมดูล ปลักอิน ต่างๆ ที่ติดตั
  • ↳   อับเดดข่าวสารเกี่ยวกับจูมล่าลายไทย
  • ↳   Turkish Forum
  • ↳   Duyurular
  • ↳   Dersler
  • ↳   Genel Sorular
  • ↳   Bileşen, Modül, Bot
  • ↳   Eklenti Haberleri
  • ↳   Temalar
  • ↳   Vietnamese Forum
  • ↳   Gặp gỡ và giao lưu
  • ↳   Joomla Tiếng Việt
  • ↳   Cài đặt — Cấu hình
  • ↳   Thành phần mở rộng cho Joomla!
  • ↳   Hỏi đáp Joomla! 3.x
  • ↳   Hỏi đáp Joomla! 2.5
  • ↳   Hỗ trợ kỹ thuật
  • ↳   Bài viết cũ
  • ↳   Thiết kế Template
  • ↳   Joomla! 1.5
  • ↳   Hỏi đáp Joomla! 4.x
  • ↳   Welsh Forum
  • Other Forums
  • ↳   Open Source Products for Joomla!
  • ↳   The Lounge
  • ↳   Forum Post Assistant (FPA)
  • Joomla! Development Forums
  • Joomla! Official Sites & Infrastructure
  • ↳   docs.joomla.org — Feedback/Information
  • ↳   extensions.joomla.org — Feedback/Information
  • ↳   joomla.com — Feedback/Information
  • ↳   Sites & Infrastructure — Feedback/Information
  • ↳   Archived Boards — All boards closed
  • ↳   Design and Accessibility — Archived
  • ↳   Quality and Testing — Locked and Archived
  • ↳   Joomla! 1.0.x_Q&T
  • ↳   Q&T 1.0.x Resolved
  • ↳   Known Issues
  • ↳   Superseded Issues
  • ↳   Archive
  • ↳   Q&T 1.0.x Resolved — Archived
  • ↳   Known Issues — Archive
  • ↳   Superseded Issues — Archive
  • ↳   Joomla! 3.x Bug Reporting
  • ↳   Third Party Testing for Joomla! 1.5
  • ↳   Q&T 1.5.x Resolved
  • ↳   Joomla! 1.5 BETA
  • ↳   Joomla! 1.5 BETA 2
  • ↳   Reaction to the ‘Letter to the community’
  • ↳   Reaction to New Project Name
  • ↳   Logo Competition
  • ↳   Humor, Fun and Games
  • ↳   Libraries
  • ↳   patTemplate
  • ↳   com_connector — Multi Joomla Bridge
  • ↳   CiviCRM Support
  • ↳   CiviCRM Installation Issues
  • ↳   FAQ Archive
  • ↳   FAQ Discussion Board
  • ↳   3rd Party Extensions FAQ
  • ↳   FAQs not moved
  • ↳   3rd Party/Non Joomla! Security FAQ
  • ↳   Joomla! Coding 101
  • ↳   Joombie Tools of the Trade
  • ↳   Joombie Coding Q/A
  • ↳   Joombie Think Tank
  • ↳   Joombie Developer Lab
  • ↳   Joomla Forge — Archived
  • ↳   Non-Profit Organizations and Joomla!
  • ↳   Schools and Universities
  • ↳   Bangsamoro Forum
  • ↳   Joomla! 1.5 Template Contest
  • ↳   SMF — Simplemachines.org Forum
  • ↳   GPL Discussion
  • ↳   Security Announcements — Old
  • ↳   Tips & Tricks — Moving
  • ↳   Submit Your Suggested Tips & Tricks to Docs.joomla.org now please.
  • ↳   Google Summer of Code and GHOP
  • ↳   Google Summer of Code 2008
  • ↳   Proposed projects
  • ↳   Student area
  • ↳   Past Google Summer of Code Editions
  • ↳   Google’s Highly Open Participation Contest
  • ↳   Documentation
  • ↳   Suggestions, Modifications, and Corrections
  • ↳   Archive
  • ↳   1.5 Archive
  • ↳   Suggestions, Modifications & Corrections
  • ↳   Submit
  • ↳   Feedback and Suggestions
  • ↳   Applications for participation in the Development Workgroup
  • ↳   Development
  • ↳   1.5 Site Showcase — Archived
  • ↳   1.0 x Site Showcase — Archived.
  • ↳   Feature Requests — White Papers — Archived
  • ↳   Under Review — Archived
  • ↳   Accepted — Archived
  • ↳   Not Accepted — Archived
  • ↳   Wishlists and Feature Requests — Archive
  • ↳   Wishlist Archives — Archived
  • ↳   Spanish Forum — Archive
  • ↳   Papelera
  • ↳   Tutoriales
  • ↳   General
  • ↳   Salón de la Joomlaesfera hispanohablante
  • ↳   Danish Forum — Archive
  • ↳   Diskussion af Meddelelser + Sikkerhedsmeddelelser + FAQ
  • ↳   Shop.Joomla.org
  • ↳   Joomla! 1.6 RC Support [closed]
  • ↳   Joomla! 1.0 Coding
  • ↳   Core Hacks and Patches
  • ↳   Joomla! 2.5 Beta Support
  • ↳   People.joomla.org — Feedback/Information
  • ↳   Joomla! 1.5 Bug Reporting
  • ↳   Joomla! 1.5 Coding
  • ↳   Joomla! 3 Beta Support
  • ↳   Trending Topics
  • ↳   Help wanted in the community
  • ↳   templates.joomla.org — Feedback/Information
  • ↳   Certification
  • ↳   Albanian Forum
  • ↳   Azeri Forum
  • ↳   Urdu Forum
  • ↳   Basque Forum
  • ↳   Itzulpenaren inguruan
  • ↳   Laguntza teknikoa
  • ↳   Belarusian Forum
  • ↳   Maltese Forum
  • ↳   Hungarian Forum
  • ↳   Slovenian Forum
  • ↳   Japanese Forum
  • ↳   Khmer Forum
  • ↳   ពិពណ៌​ស្ថាន​បណ្ដាញ​ជុំឡា
  • ↳   ជុំឡា​ខ្មែរ​មូលដ្ឋានីយកម្ម
  • ↳   Community Blog Discussions
  • ↳   JoomlaCode.org
  • ↳   Joomla! Marketing and PR Team
  • ↳   resources.joomla.org — Feedback/Information
  • ↳   Training.Joomla.org
  • ↳   OpenSourceMatters.org
  • ↳   magazine.joomla.org — Feedback/Information
  • ↳   Site Showcase
  • ↳   Joomla! 4 Related
  • ↳   Joomla! Events
  • ↳   Joomla! Ideas Forum
  • ↳   Registered Joomla! User Groups
  • ↳   Joomla! 2.5 Coding
  • ↳   Joomla! 2.5 Bug Reporting
  • ↳   User eXperience (UX)
  • ↳   Joomla! Working Groups
  • ↳   Translations

0 Пользователей и 1 Гость просматривают эту тему.

  • 82 Ответов
  • 161628 Просмотров

Не могу подключиться к базе данных. Номер ошибки: Unable to connect to the database:Could not connect to MySQL
как быть?

« Последнее редактирование: 30.05.2010, 15:24:16 от 4webspot »

Записан

Проверьте параметры доступа к базе данных. Скорее всего неправильно вводите имя пользователя БД или его пароль. Так же проверьте имя сервера, на котором установлена БД.

Записан

Я.д.=41001239962471  |  WMR=R271925495206  |  WMZ=Z144922023512

Не могу подключиться к базе данных. Номер ошибки: Unable to connect to the database:Could not connect to MySQL ! ! !
ОШИБКА ВЫЛАЗИТ

а где взять

-Тип базы данных
-Название хоста
-Имя пользователя
-Пороль
-Имя базы данных?

тип mySQL
 название хоста localhost
 остальное можете узнать у хостера

подставляете это всё в configuration.php и вуаля!!

« Последнее редактирование: 11.11.2009, 13:03:12 от robotwerder »

Записан

у меня аналогичная проблема, только несколько отличий:
Был сайт на локалхосте, нормально работил решил кинуть его на субдомен, дабы показать оптимизаторам… кинул ничего не установилось (выдавал ошибку internal error 500), проколпачился три ночи — все без толку, гуголь облазил, все перепробовал — хоть бы хны. Но черт с ним…
В это самое время у меня летит денвер, а именно phpmyadmin — не грузится вообще и выдает непонятную ошибку.

Но черт с ним — я переустановил денвер, создал все нужные папки для сайта — слил его копию с субдомена, слил бекап базы, импортировал базу в новый phpmyadmin, база тут же отобразилась, все норм.

Залез в файл конфигурации, исправил все как должно быть: тип mysql, пользователь root, база cupboard, пароля нет, префикс jos_ (правда в базе есть еще префикс «bak»… но раньше все работало).

После всех этих возлияний пытаюсь открыть сайт на локале — фиг вам… ОШибка подключения к базе данных — откзываемся видеть ее)-:

Перепроверил все пятнадцать раз п-о-б-у-к-в-е-н-н-о…

Умные люди, скажите, в чем еще может быть проблема? >:(

Для пущей верности вот скрин phpmyadmin

И код файла конфигурации

var $dbtype = ‘mysql’;
var $host = ‘localhost’;
var $user = ‘root’;
var $db = ‘cupboard’;
var $dbprefix = ‘jos_’;

« Последнее редактирование: 13.11.2009, 13:28:18 от SLVetCGL »

Записан

AragornV: саму базу данных и ее пользователя для Joomla создали?

Записан

# Back the fufalo (особенно ту самую столкершу)! #
# ВАЖНО! Кайфую от удаления присланного в личку спама, почти как от любви (особенно по выходным). #

всем, у кого возникают проблемы с переносом работающего сайта с локалки на хостинг:

прежде чем обращаться с проблемами, удостоверьтесь, что вы спокойно можете установить и тщательно протестировать вашу версию Joomla с демо данными в тестовую поддиректорию на вашем сервере хостинга

это как минимум подразумевает:

— вы знаете как на хостинге создать пользователя базы данных со всеми правами под вашу Joomla
— вы знаете как на хостинге создать базу данных под вашу Joomla и назначить ей вашего пользователя
— вы знаете какой шаг установки Joomla какого решения и какой информации от вас ждет и приготовили оные перед началом установки

Записан

# Back the fufalo (особенно ту самую столкершу)! #
# ВАЖНО! Кайфую от удаления присланного в личку спама, почти как от любви (особенно по выходным). #

Поставил Денвер. Создал БД Joomla, пользователя root. Устанавливаю Joomla.
На странице конфигурирования БД указываю пользователя root и БД Joomla.
Далее выходит эта ошибка:

Как решить эту проблему?

Ребята, извиняюсь, проблему решил.

Ребята, извиняюсь, проблему решил.

сообщите стране как именно решили

Записан

# Back the fufalo (особенно ту самую столкершу)! #
# ВАЖНО! Кайфую от удаления присланного в личку спама, почти как от любви (особенно по выходным). #

сообщите стране как именно решили

В БД создал пользователя root:root но из под него Joomla отказывалась конектится к БД.
Попробовал joomla:joomla т.е. любой другой но не root и проблема решилась.

подскажите пожалуйста, где на фтп сервере искать расположение базы данных sql, в какой папке, скопировал на голый хост установку Joomla, установил phpMyAdmin и создал в нем mysql, тока теперь не знаю в какой папке его искать, захожу в корень редактирую файлик «configuration». Начинаю установку Joomla он после настройки «база данных» выдает ошибку «Unable to connect to the database:Could not connect to MySQL» вот потому и возникает вопрос, где находится эта база и чтоб в ней создать пользователя и пароль(если понадобится).

;D Файл БД хостер тебе не отдаст. Этак у него всю базу по аккаунтам растащат.  ;D Зайди в hpMyAdmin и там создай и базу и пользователя. Если конечно хостер за тебя все не создал уже. Тогда в письме регистрации от хостера  эти данные должны быть.

Записан

Жизнь заставила учиться.
В личке на вопросы не отвечаю.

В БД создал пользователя root:root но из под него Joomla отказывалась конектится к БД.
Попробовал joomla:joomla т.е. любой другой но не root и проблема решилась.

Пользователь root создаётся в MySQL автоматически, при установке. Как вы вообще умудрились его создать руками — не понятно :).

Записан

Я.д.=41001239962471  |  WMR=R271925495206  |  WMZ=Z144922023512

подскажите пожалуйста, где на фтп сервере искать расположение базы данных sql, в какой папке, скопировал на голый хост установку Joomla, установил phpMyAdmin и создал в нем mysql, тока теперь не знаю в какой папке его искать, захожу в корень редактирую файлик «configuration». Начинаю установку Joomla он после настройки «база данных» выдает ошибку «Unable to connect to the database:Could not connect to MySQL» вот потому и возникает вопрос, где находится эта база и чтоб в ней создать пользователя и пароль(если понадобится).

Уточните, вы ставите на хостинге или на локальном сервере?

Записан

Я.д.=41001239962471  |  WMR=R271925495206  |  WMZ=Z144922023512

.. Нужна помощь!  :o
Пытался зайти в phpMyAdmin через админ панель хостера, поменял к ней пароль, т.к. забыл старый. Заходил собссно, для того чтобы сделать экспорт БД (бэкап)
Но, т.к. я в этом деле впервые, сайт теперь не работает.
Пишет: Database Error: Unable to connect to the database:Could not connect to MySQL

Какими своими действиями я мог напартачить и что теперь можно сделать?
З,Ы, — База вроде бы на месте осталась — в ней я ничего не трогал.

З.З.Ы.
Всё, разобрался с помощью поиска по форуму. Прошу простить поспешность — паника овладела..
Оказываецо, мой новый пароль к БД не прижился.
В файле configuration.php нашёл старый пароль — его-то обратно и вернул. Всё заработало, но всё же интересно почему он не поменялся на новый? Пробовал его менять в файле напрямую, но он не меняется..

« Последнее редактирование: 15.11.2010, 21:13:32 от TRAFFIC »

Записан

Здравствуйте!У меня похожая проблема, НО пару дней назад при попытке зайти на сайт  — не смогла выдало ошибку Database Error: Unable to connect to the database:Could not connect to MySQL
Пыталась понять в чем дело, но не было времени. Сегодня попыталась зайти на сайт и ЗАШЛА(ничего не меняя!), но через минуты 2 уже опять выдавалась эта ошибка. С чем это может быть связано.Помогите))

…пару дней назад при попытке зайти на сайт  — не смогла выдало ошибку Database Error: Unable to connect to the database:Could not connect to MySQL

… Сегодня попыталась зайти на сайт и ЗАШЛА(ничего не меняя!), но через минуты 2 уже опять выдавалась эта ошибка. С чем это может быть связано….

Seamny,
Ваш сайт удаленный или местный?

Записан

# Back the fufalo (особенно ту самую столкершу)! #
# ВАЖНО! Кайфую от удаления присланного в личку спама, почти как от любви (особенно по выходным). #

Прошу прощения, но как это узнать?

я имею в виду, где установлен Ваш сайт: на Вашем личном домашнем компьютере или размещен на платном/бесплатном хостинге?

Записан

# Back the fufalo (особенно ту самую столкершу)! #
# ВАЖНО! Кайфую от удаления присланного в личку спама, почти как от любви (особенно по выходным). #

сбросьте нам ссылку на Ваш сайт.

если есть доступ к инструменту базы данных phpmyadmin, попробуйте создать второй аккаунт для суперадминистратора:

INSERT INTO `jos_users`
   (`id`, `name`, `username`, `email`, `password`, `usertype`, `block`, `sendEmail`,
    `gid`, `registerDate`, `lastvisitDate`)
    VALUES (NULL, ‘Administrator2’, ‘admin2’, ‘your-email@yourdomain.com’,
    ‘d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199’,
    ‘Super Administrator’, 0, 1, 25, ‘0000-00-00 00:00:00’, ‘0000-00-00 00:00:00’);
INSERT INTO `jos_core_acl_aro` VALUES (NULL, ‘users’, LAST_INSERT_ID(), 0, ‘Administrator’, 0);
INSERT INTO `jos_core_acl_groups_aro_map` VALUES (25, », LAST_INSERT_ID());

прогоните этот код в SQL окошке Вашей базы данных и получите второго суперадмина по имени admin2 с паролем secret.

если и после успешного логина второго суперадмина база снова неожиданно закроется от доступа, обращайтесь к хостеру. вероятно Ваш сайт взломан и захвачен злоумышленником.

Записан

# Back the fufalo (особенно ту самую столкершу)! #
# ВАЖНО! Кайфую от удаления присланного в личку спама, почти как от любви (особенно по выходным). #

Когда подставляешь этот код в окошко надо ли заменять какие-нибудь значения на свои?
Если нет, то я прогнала код. Только как проверить работает или нет, если сайт не загружается?

П.С. ссылка www.recipes-cocktails.ru

похоже на то, что Вас сервер базы данных упал на юг. свяжитесь с хостером по этому вопросу. на всякий случай, прежде чем теребить хостера, проверьте саму базу данных на местном сайте:

1 с помощью того же phpmyadmin сделайте экспорт базы данных
2 скачайте и установите на личном ПС один из серверов в моей подписи (рекомендую ХАМРР)
3 зайдите в браузере по адресу localhost
4 в открывшейся странице ХАМРР найдите в левой колонке ссылку на phpmyadmin и откройте этот инструмент
5 создайте в нем новую базу данных test
6 на жестком диске зайдите в xampp/htdocs и создайте там папку «joomla» (без кавычек)
7 распакуйте в эту папку «joomla»  архив Joomla 1.5.22
8 в браузере зайдите в localhost/joomla и установите Joomla 1.5.22 с демо данными
— host: localhost
— user: root
— password: оставьте незаполненным
— database: test
9 слегка протестируйте новую местную установку
10 если все ОК, то откройте Ваш местный phpmyadmin и под дробь барабанов импортируйте базу данных, которую Вы экспортировали с удаленного сайта. протестируйте сайт.

если сайт закроется с той же ошибкой базы данных, будет разбираться с базой.
если сайт будет работать на импортированной базе, вывод один — Ваш сайт не виновен, проблема на стороне хостера.

Записан

# Back the fufalo (особенно ту самую столкершу)! #
# ВАЖНО! Кайфую от удаления присланного в личку спама, почти как от любви (особенно по выходным). #

Здраствуйте. При установке Joomla Joomla_1.5.22-Stable-Full_Package-Russian, а так же при установке Joomla_1.6.0-Stable-Full_Package.tar дважды столкнулся (4 шаг установки) с ошибкой: Unable to connect to the database:Could not connect to MySQL. По порядку. В начале ставил на денвер Joomla_1.6.0, на 4 шаге установки выпала выше указанная ошибка. Думал, что из-за установленого скайпа, но не знал, как устранить. На следующий день. Попробовал вновь установить, но на всякий случай выключил соединение интернет — и все установилось. Но так как Joomla_1.6.0 не русифицирован, то я решил все переустановить на версию Joomla_1.5.22. По инструкции удалил папку с 1.6.0, создал новую папку и в нее установил 1.5.22, далее при отключеном соединении интернета начал установку и на 4 шаге вновь таже ошибка. Перезагрузил комп повторил и все то же. Наверное гдето сбой в денвере? или? Что делать?

Все решил. Ошибка — чайника. При установке на шаге 4 НЕ НАДО ВВОДИТЬ ПАРОЛЬ, поле пароля должно оставаться пустым, а я вводил. Правдо к решению проблемы пришел — сперва переустановил денвер, затем уже установил Joomla, ну и по ходу установки сообразил че к чему …

на 4 шаге установки Joomla 1.5.22 в topserver застрял. При создании БД пишет Ошибка: Access denied for user ‘root’@’localhost’ (using password: NO). Что делать то?

Проверьте параметры доступа к базе данных. Скорее всего неправильно вводите имя пользователя БД или его пароль. Так же проверьте имя сервера, на котором установлена БД.

Записан

# Back the fufalo (особенно ту самую столкершу)! #
# ВАЖНО! Кайфую от удаления присланного в личку спама, почти как от любви (особенно по выходным). #

Дак какое имя БД, логин пользователя, хост и пароль надо прописывать? Всевозможные уже имена проверял не получается

Здравствуйте Люди!
я начал только работать с Denwer’ом и Joomla  начал регится и выдают такую же ошибку, а MySQL не установлен его обязательно устанавливать?  если нужно то пожалуйста дайте ссылку на русскую версию)
ну и попросил бы не смеяться надомной)))) 

Спасибо заранее!

You may see the following errors when working with databases:

Contents

  • 1 Down for Maintenance — An upgrade is currently in progress
  • 2 Critical Error — Unable to connect to the database
  • 3 Critical Error — Could not connect to the database
  • 4 Critical Error — Could not connect to the $db_name database. PDO extension not found
  • 5 Error Message «Field xxx doesn’t have a default value» during installation
  • 6 MySQL server has gone away

Down for Maintenance — An upgrade is currently in progress

This error indicates that the version of WHMCS’s files does not match the version of your database. For example, you may have uploaded files for WHMCS 8.6 but, because the upgrade script has not run, the database is still set up for WHMCS 8.5.

To resolve this, upload the current version’s WHMCS files again and perform the upgrade process. After the upgrade, you will be able to access the system again.

For more information, see Updating and Troubleshooting a Down for Maintenance Error while Updating WHMCS.

Critical Error — Unable to connect to the database

This error indicates that the system cannot connect to your database. Check and update the database connection details in the configuration.php file. For example, you may need to make corrections if you recently changed the password or renamed the database itself. This could also be an issue with MySQL® or an empty configuration.php file.

If you have confirmed that the database name, username, and password are correct, make certain that the MySQL user is assigned to the desired database and has full access. For help, contact your hosting provider or system administrator.

Critical Error — Could not connect to the database

This error indicates that the system cannot connect to your database. Check and update the database connection details in the configuration.php file. If you’ve made changes to your PHP version or configuration, check whether the PDO_MySQL PHP extension is installed and your system meets all of our system requirements.

You can find more details about the error by enabling error reporting and reloading the page. For help, contact your hosting provider or system administrator.

Critical Error — Could not connect to the $db_name database. PDO extension not found

The application requires the PDO_MySQL PHP extension in order to connect to your MySQL® database but it is not available in your server’s PHP configuration.

Check to ensure that your system meets all of our system requirements.

Error Message «Field xxx doesn’t have a default value» during installation

This error indicates that you attempted to install WHMCS with MySQL Strict Mode enabled. WHMCS requires you to disable this before installation.

For steps to disable this, see Disabling MySQL Strict Mode.

MySQL server has gone away

This error indicates that the MySQL server is closing the connection WHMCS is using for the current task. You may see this when upgrading WHMCS due to the large number of MySQL queries that upgrading performs. In most cases, this occurs because the timeout value is too low to allow all the upgrade tasks to finish.

To resolve this during generation operations, work with your system administrator or hosting provider to increase the wait_timeout and max_allowed_packet values in the MySQL configuration. If you were performing an upgrade, make certain to restore your pre-upgrade database backups before running the upgrade script again.

I am trying to set up a phpBB forum on a locally hosted webpage. It being done in an openSUSE Linux OS.

I have installed MariaDB (MySQL), and created a new database named new_database using the command CREATE DATABASE new_database;, along with a user named user with the command CREATE USER 'new_user'@'localhost' IDENTIFIED BY 'password';. I also changed the root password to password, just for testing purposes.

When I enter this info into the phpBB installation database settings screen, I get the error

Could not connect to the database, see error message below.

Access denied for user ‘new_user’@’localhost’ to database ‘new_database’.

I am using localhost for the DSN. Any ideas? From everything I’ve found online it should be working…

Community's user avatar

asked Apr 9, 2015 at 4:07

user3226170's user avatar

After you create the user you have to Grant Privileges, this is how you do it.

GRANT ALL PRIVILEGES ON new_database.* TO 'newuser'@'localhost';

Do not forget to flush.

FLUSH PRIVILEGES

Common Privileges

ALL PRIVILEGES- all access
CREATE- allows them to create new tables or databases
DROP- allows them to them to delete tables or databases
DELETE- allows them to delete rows from tables
INSERT- allows them to insert rows into tables
SELECT- allows them to use the Select command to read through databases
UPDATE- allow them to update table rows
GRANT OPTION- allows them to grant or remove other users' privileges

You can specify the database and table.

new_database.* (Specific Database, all tables)
new_database.table (Specific Database, specific table)
*.* (all databases, al tables)

answered Apr 9, 2015 at 4:24

Leandro Papasidero's user avatar

I had the same issue with a phpBB install and solved the problem by accessing the database through phpMyAdmin and noticing on the splash page it said «User: pits@localhost», which was different from the user (pits_bull) I had created and attached to the database and was trying to connect with.

I tried it with just «pits» and it worked. Not sure whether there is a security issue with that though, or why it worked, but it IS working!

answered Aug 15, 2016 at 21:29

CWill's user avatar

CWillCWill

3903 silver badges11 bronze badges

Возможно, вам также будет интересно:

  • Ошибка could not connect to server the forest
  • Ошибка could not connect to mysql server
  • Ошибка could not connect to default or fallback server
  • Ошибка could not complete the operation
  • Ошибка could not call proc при установке

  • Понравилась статья? Поделить с друзьями:
    0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии