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 179873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T14:29:04+00:00 2026-05-11T14:29:04+00:00

For a school project, I have installed MediaWiki on my local machine, and am

  • 0

For a school project, I have installed MediaWiki on my local machine, and am required to have any database connection to the local MySQL database use SSL. I am unsure of how to connect all the dots. Here’s what I have done so far:

  1. I have installed OpenSSL, and created a self-signed certificate, and associated keys.
  2. phpinfo() shows OpenSSL as being enabled.
  3. I have included this in the [mysqld] section of my.ini:

ssl-key=’C:/newcerts/server-key.pem’ ssl-cert=’C:/newcerts/server-cert.pem’ ssl-ca=’C:/newcerts/ca-cert.pem’

  1. Running MySQL Command Line prompts me for the root password, and upon entering it, I get Error 1045:Access denied, etc.

  2. Running mysql -u root -p ssl-ca=’C:/newcerts/ca-cert.pem’ from the bin directory and entering the password succeeds, and gives me a mysql prompt. Running status shows SSL: Cipher in use is DHE-RSA-AES256-SHA.

Here’s where I’m confused. What else needs to be done (like through Apache or a PHP config file, or a MediaWiki file) to require database connections to use SSL?

  • 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. 2026-05-11T14:29:04+00:00Added an answer on May 11, 2026 at 2:29 pm

    You’re going to want to use the mysqli extension because the native php/mysql extension does not support SSL. See the mysqli SSL related function:

    http://us.php.net/manual/en/mysqli.ssl-set.php

    That being said, the DB class in MediaWiki is abstracted out, but to the best of my knowledge the existing implemenation uses the regular php/mysql, NOT mysqli so I think you’re going to have write your own mysqli adapter, or maybe somebody already has.

    Either way you will need to get MediaWiki to use a mysqli adapter.

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

Sidebar

Related Questions

I have a website for school project, written in html,jsp and I use mysql
My team working on a php/MySQL website for a school project. I have a
I have developed a PHP-MySQL web application, which is a school-based project. My client
I installed MySql on my own machine. I created database, create table, ... using
I have to use idlj for my school project but in my idl files
I have an interest in creating a NoSQL database system for a school project
I am a newbie to Hibernate. I have a school project using MySQL, JDBC,
I'm doing this for a school project (so I can't use any advanced features)
I am trying to use GLFW for a school project, and have followed these
I have a school project in which I have to implement a chat application,

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.