Skip to content
  • Solutions
    By Role
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    • For Developers
    • For Content Managers
    • For Agencies
    • For IT Admins
    • For Web Hosters
    By Infrastructure
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Overview
    • AWS
    • Microsoft Azure
    • Alibaba Cloud
    • Google Cloud Platform
    • Vultr
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
    • Digital Ocean
    • Linode
    • Upcloud
    • Oracle
    • OVH
  • Product
    • Plesk Features
    • Plesk Editions
    • What’s new
    • Pricing
    • Roadmap
    • Lifecycle Policy
    • Extensions Catalogue
  • Pricing
  • Extensions
    Featured Extensions
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    • SocialBee
    • WP Toolkit
    • Sitejet Builder for Plesk
    • SEO Toolkit
    • Joomla! Toolkit
    • Premium Email
    • Email Security
    Bundles and packs:
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack
    • Business and Collaboration Edition
    • WP pack
    • Hosting pack
    • Power pack
    • Language pack

    See all Extensions

  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
  • Pricing
  • Solutions
    • By Role
      • For Developers
      • For Content Managers
      • For Agencies
      • For IT Admins
      • For Web Hosters
    • By Infrastructure
      • Overview
      • Plesk on Amazon Web Services (AWS & Lightsail)
      • Microsoft Azure
      • Alibaba Cloud
      • Google Cloud Platform
      • Vultr
      • DigitalOcean
      • Linode
      • UpCloud
      • Oracle
      • OVH
  • Products
  • Pricing
  • Extensions
    • Featured Extensions
      • SocialBee
      • WP Toolkit
      • Sitejet Builder for Plesk
      • SEO Toolkit
      • Joomla! Toolkit
      • Premium Email
      • Email Security
    • Bundles and packs:
      • Business and Collaboration Edition
      • WP pack
      • Hosting pack
      • Power pack
      • Language pack
      • See all Extensions
  • For Partners
    • Plesk Contributor Program
    • Plesk Partner Program
    • Affiliate Program
    • Plesk University
  • Help Center
    • Documentation
    • Professional Services
    • Support
    • Contact Us
    • Wiki
    • Forum
  • Plesk 360 login
  • Free Trial
Plesk 360 login
Free Trial

Knowledge Base

How to access the Plesk psa database in MySQL/MariaDB

 
databasedatabasesdomainsgoguide

Question

How to connect to MySQL/MariaDB and open the Plesk psa database?

Answer

Note: This guide is intended for Plesk administrators with SSH/RDP access to the server.

 

Accessing Plesk database on Linux via SSH

 

  • To access Plesk database in MySQL/MariaDB:

    [root@server]# plesk db

    Once you are logged in, start running SQL queries.

    Example of an SQL query:

    mysql> select id,name from domains where name='example.com';
    +----+-------------+
    | id | name        |
    +----+-------------+
    | 3  | example.com |
    +----+-------------+

    To exit MySQL/MariaDB, run the command:

    mysql> quit

 

  • To run a query to Plesk database without logging in to MySQL/MariaDB:

    [root@server]# plesk db "your_query_here"

    Example:

    [root@server]# plesk db "select id,name from domains where name='example.com'"
    +----+-------------+
    | id | name        |
    +----+-------------+
    | 3  | example.com |
    +----+-------------+

 

 

Accessing Plesk database on Windows Server via RDP

 

On Windows Server, Plesk uses two MySQL/MariaDB instances:

  • Plesk SQL Server on port 8306: for Plesk databases psa and apsc
  • MySQL server on port 3306: for Horde, Sitebuilder and customers' databases

 

Accessing Plesk SQL Server

  • Use the plesk db utility:
    • To access Plesk database in MySQL:

      C:> plesk db

      Once you are logged in, start running SQL queries.

      Example of an SQL query:

      C:> mysql> select id,name from domains where name='example.com';
      +----+-------------+
      | id | name        |
      +----+-------------+
      | 3  | example.com |
      +----+-------------+

      To exit MySQL, run the command:

      C:> mysql> quit

       

    • To run a query to Plesk database without logging in to MySQL:

      C:> plesk db "your_query_here"

      Example:

      C:> plesk db "select id,name from domains where name='example.com'"
      +----+-------------+
      | id | name        |
      +----+-------------+
      | 3  | example.com |
      +----+-------------+

  •  

 

Accessing MySQL/MariaDB server

  • Run the following command:

    C:> "%plesk_dir%MySQLbinmysql" -P3306 -uadmin -p

    If the password is unknown, reset it according to this KB article.

 

 

Accessing Plesk database in Plesk interface on Linux

 

  1. In Plesk, go to Tools & Settings > Database Servers > select MySQL/MariaDB server running on port 3306 > click on the Screenshot-2018-1-20_Plesk_Onyx_17_5_3.png icon:

    Click on the picture to enlarge
    Database Servers

  2. Select Plesk database "psa" from the list:

  3. Switch to the SQL tab:

    Screenshot_2018-10-30_10_39_81_90_8443_localhost_psa_phpMyAdmin_4_8_3_2_.png

  4. Type in an SQL query and click Go to execute it:


    Screenshot_2018-10-30_10_39_81_90_8443_localhost_psa_phpMyAdmin_4_8_3_3_.png

 

Tweet
Share
Share
Email
0 Shares
Read the full article
Related Posts

How to Host a Go App on Plesk

Read More »

Exploring Plesk’s Added Value Solutions So Far in 2023

Read More »

Unveiling Sitejet Builder: The Perfect Match for Your Effortless Website Creation Needs

Read More »
Knowledge Base

Unable to add MySQL/MariaDB/MSSQL database in Plesk: the option is missing

Read More »

 An operation fails in Plesk: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘X’ for key ‘PRIMARY’

Read More »

How to manage customers’ databases in Plesk

Read More »

How to change a database user password in Plesk

Read More »

Hosting Wiki

  • Django
  • DBMS Interface
  • Server Redundancy
  • Horde
  • Linux Containers
  • Google Cloud CDN
  • PostgreSQL
  • Bare Metal Server
  • MySQL
  • Oracle VM Server
  • Server Virtualization Software
  • Windows Server
  • Linux
  • MSSQL
  • MongoDB
  • SQL
  • Domain
  • Plesk
  • SQL database
  • NoSQL Database
  • Web Server
  • DNS Server
  • SSH
X-twitter Linkedin Youtube Reddit Github
  • Product
  • Login
  • Pricing
  • Editions
  • For Partners
  • Partner Program
  • Contributor Program
  • Affiliate Program
  • Plesk University
  • Company
  • Blog
  • Careers
  • Events
  • About Plesk
  • Our Brand
  • Resources
  • User and Admin guides
  • Help Center
  • Migrate to Plesk
  • Contact Us
  • Hosting Wiki
  • Forum
  • Legal
  • Legal
  • Privacy Policy
  • Imprint

© 2025 WebPros International GmbH

Part of the WebPros®  Family