Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8970279
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T17:42:29+00:00 2026-06-15T17:42:29+00:00

Today I have got a new project that is in Joomla. I have website

  • 0

Today I have got a new project that is in Joomla.
I have website code downloaded on my computer.
Website administration panel is cpanel.

I have never done anything with Joomla site before.

When I open website on my local machine (http://localhost/ppp/public_html/index.php) it says Database connection error (2): Could not connect to MySQL.
However, I have changed configuration.php file (it was my guess that I need to change it):

//Before my changes it was the following:
public $host = 'localhost';
public $user = 'reiuser_reiuser';
public $password = 'password';
public $db = 'reiuser_reiuser';

//After my changes:
public $host = '174.121.134.94'; //IP was displayed in cpanel
public $user = 'reiuser_reiuser';
public $password = 'password';
public $db = 'reiuser_reiuser';

I have read info about this error and most says to check connection data.
However, I can successfully connect with HeidiSql using those connection data (user/password/db were changed).

Maybe here is not enough information, but maybe Joomla developers can suggest what to do?
Which Joomla file is dooing connection? Maybe I can do some echos to understand the cause of error?
Website is using CPanel.

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T17:42:29+00:00Added an answer on June 15, 2026 at 5:42 pm

    When I tried to use mysql_connect directly, I got something like
    mysql_connect() [function.mysql-connect]: Premature end of data (mysqlnd_wireprotocol…
    The link for a sollution I have found here.

    “The above problem occures because of version in-compatibility between PHP and MySql. Mostly it may occurs during remote access of db.”

    I downgraded my php and apache (I am using wamp) and now connection is ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have never had a problem starting a new app, but today I got
I encountered an interesting thing today that I have never noticed before. It appears
Today I got some new restrictions on my WPF user interface that should eliminate
I got an email today saying: In every case that we have examined, this
I have some code that used to work. But I today when I try
Need a much Optimized code.Well I Got a Project and I have Succefully made
I have a new laptop at work and code that worked earlier in the
Today we have a windows application that, using an OCX, creates a web page
Today I have noticed that the order in which the $lt and $gt operators
I got my new laptop today, and copied my eclipse workspace to it. However,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.