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

  • Home
  • SEARCH
  • 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 6671795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:25:55+00:00 2026-05-26T03:25:55+00:00

I started up my local MYSQL server with the shared memory protocol turned on.

  • 0

I started up my local MYSQL server with the shared memory protocol turned on.
How can I connect to my server with ZeosLib? Where do I specify that it is using shared-memory?

I am using Lazarus(freepascal), although the directions would be the same for Delphi (probably).

  • 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-05-26T03:25:56+00:00Added an answer on May 26, 2026 at 3:25 am

    Even if the TZConnection has no connection string property you can set the additional connection parameters in TZConnection.Properties.

    I presume you run your MySQL server this way

    mysqld --skip-networking --shared_memory=1 --shared-memory-base-name='MyMemoryDB'
    

    To enable your shared memory connection you might try to add the following configuration lines into the property TZConnection.Properties at design time in Object Inspector.
    Note that the protocol must be set as it is and shared-memory-base-name to the same value as you used in the command line parameter. The default value is MYSQL so if you omit the parameter in command line then you should change the following MyMemoryDB values to MYSQL.

    So in TZConnection.Properties property try to add these two lines

    protocol=memory
    shared-memory-base-name=MyMemoryDB
    

    or at runtime in the TZConnection.BeforeConnect event handler use

    procedure TForm1.ZConnection1BeforeConnect(Sender: TObject);
    begin
      ZConnection1.Properties.Add('protocol=memory');
      ZConnection1.Properties.Add('shared-memory-base-name=MyMemoryDB');
    end;
    

    Hope this will help you somehow. I haven’t tested it because I don’t have the proper environment.

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

Sidebar

Related Questions

i have started mysql server but the /tmp/mysql.socket file is missing. Can't connect to
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I
I've started building an android app that will connect to a sql server and
recently I started a small Django project that I developed on a local machine
trying to get my first little PHP script to connect to a local mySql
I have recently started using Zend Framework. I started developing on my local XAMPP
2002 - The server is not responding (or the local MySQL server's socket is
I have a local thread that is started on button-click event from the main
I have started a new mvc project and clicked on project\properties\web - use local
I started using subversion for one of my projects and it would be absolutely

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.