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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:10:43+00:00 2026-06-03T16:10:43+00:00

I use MySQL DBMS for storing my data. I’ve lot of mathematical data to

  • 0

I use MySQL DBMS for storing my data. I’ve lot of mathematical data to enter into the database. I guess entering Mathematical data in the form of latex is a best option.(Please feel free to suggest if you think other solutions would be better). We use PHPMyAdmin for data entry into MySQL. Now thing is because we are entering lot of math data. It would be better to see what we are entering. Exactly similar to live preview of math.stackexchange.com. This is where Mathjax comes into picture. Now the big question is how to integrate Mathjax support to PHPMyAdmin?

If you want an example here is the kind of stuff we want to enter into the database:

In first year calculus, we define intervals such as $(u, v)$ and
$(u, \infty)$. Such an interval is a \emph{neighborhood} of $a$ if
$a$ is in the interval. Students should realize that $\infty$ is
only a symbol, not a number. This is important since we soon
introduce concepts such as $\lim_{x \to \infty} f(x)$.

When we introduce the derivative [ \lim_{x \to a} \frac{f(x) –
f(a)}{x – a}, ] we assume that the function is defined and continuous
in a neighborhood of $a$.

  • 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-03T16:10:46+00:00Added an answer on June 3, 2026 at 4:10 pm

    I found a solution. You can download modified PHPMyAdmin distribution using this link (it will be available not forever). I’ll describe the changes I’ve made. You can repeat them yourself if you want to.

    This is how it looks like:

    screenshot

    The script will work on “Insert” tab when you create new entries or edit existing ones. The script will work on all textareas (multi-line edit fields). After you change something in textarea and move focus out of it (by clicking around), the text block will be created above this textarea. Textarea’s content copies into this block. If there are some formulas, they will be rendered by MathJax. Be patient: on first time it will work slowly, formulas will be replaces after several seconds.

    Step 1. Download latest version of PHPMyAdmin.

    I’ve tested my code with latest version of PHPMyAdmin (3.5.1 by now). It can work with
    older version but I didn’t check.

    Step 2. Download latest version of MathJax and extract it to <PHPMyAdmin_Directory>/js/mathjax/distrib.

    You can download MathJax 2.0 from official site. Create in PHPMyAdmin directory folder named js/mathjax/distrib and unpack MathJax into this folder. You must now have existing file js/mathjax/distrib/MathJax.js.

    Step 3. Copy config file js/mathjax/distrib/config/default.js to js/mathjax/distrib/config/myconfig.js.

    Step 4.Change settings for your site in myconfig.js file.

    Find this section:

    tex2jax: {
    
        //
        //  The delimiters that surround in-line math expressions.  The first in each
        //  pair is the initial delimiter and the second is the terminal delimiter.
        //  Comment out any that you don't want, but be sure there is no extra
        //  comma at the end of the last item in the list -- some browsers won't
        //  be able to handle that.
        //
        inlineMath: [
    //    ['$','$'],      // uncomment this for standard TeX math delimiters
          ['\\(','\\)']
        ],
    

    From your text sample I figured out that you need to change this settings to:

    tex2jax: {
        inlineMath: [
          ['$','$'], ['[', ']'], 
          ['\\(','\\)']
        ],
    

    Step 5. Create file js/mathjax/1.js with the following contents:

    $(function() {
      var preview_number = 0;
      $("textarea").change(function(e) {
        var textarea = $(e.target);
        var d = textarea.prev();
        if (!d.hasClass("mathjax_preview")) {
          preview_number++;
          var d = $("<div class='mathjax_preview' " +
             "style='padding: 5px; color: black; background: #eee; border: 1px solid #888;'" +
             "></div>");
          d.attr("id", "mathjax_preview_" + preview_number);
          d.insertBefore(textarea);
        } 
        d.text(textarea.val());
        MathJax.Hub.Queue([ "Typeset", MathJax.Hub, d.attr("id") ]);
      });
    });
    

    Step 6. Modify tbl_change.php.

    Open tbl_change.php file in the root PHPMyAdmin directory and find this section:

    $GLOBALS['js_include'][] = 'functions.js';
    $GLOBALS['js_include'][] = 'tbl_change.js';
    $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.16.custom.js';
    $GLOBALS['js_include'][] = 'jquery/timepicker.js';
    $GLOBALS['js_include'][] = 'gis_data_editor.js';
    

    Add two more lines below this:

    $GLOBALS['js_include'][] = 'mathjax/distrib/MathJax.js?config=myconfig';
    $GLOBALS['js_include'][] = 'mathjax/1.js';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use MySQL database with Apache Mahout to get the Database-based data.
I'd like to use MySQL in this form: SELECT 1 AS one, one*2 AS
I've around 1GB of structured text data, (which is currently stored in database MySQL,
I use MySQL and SQLite often and plan on bringing more PostgreSQL into my
I use MySQL for my primary database, where I keep the actual objects. When
I use MySQL to store data and my web pages are all encoded as
I use Mysql and I need to insert mass data. The data is streamed
I have to use a dbms that support transactions. So I thought mysql +
i use mysql_real_escape_string php function for escape data recieved from a form. my code
I use MySQL 5.5.16. I'm trying to check if a certain column exists in

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.