MySQL Server performance [closed] - mysql

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a few questions regarding MySQL server running under Windows Server 2008 R2.
1) How do I check the number of allowed connections?
2) How do I turn on query logging to see performance of queries executed?
3) As I understand MySQL is multithreaded, will increasing the number of allowed connections increase performance on a Quad Core system?
4) Will having a cluster setup increase performance?
5) How can I setup load shedding with multiple MySQL servers in a cluster?
Thanks

So in the end I moved the question and I got a brilliant answer on that side.
The answer can be viewed at https://dba.stackexchange.com/questions/17511/mysql-server-performance/17540#17540
Thanks

Related

What is faster / better? More SQL-Select statements or multiple detailed sql commands? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
i work on a project with node.js and a mysql database.
i have a connection between them with the npm modul mysql.
Now my question:
is it better to send a SQL command and sort the data in node.js or multiple detailed sql commands?
what is faster / more performant?
Thanks.
Without knowing the exact SQL queries, I would say that database operations are faster compared to your own implementation. Many smart people have worked to assure performance, accuracy, atomicity, concurrency etc. of the Mysql engine.
Even if you can gain marginal improvements in some aspect with your own code, it is unlikely that you will be able to justify the investment.

What is the difference between a number and the number of connections Mysql process [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
How do I count the number of mysql processes running and the number of mysql connections? What is the relationship between these two numbers?
There is no distinction between "processes" or threads when running one server. Multiple process show up due to the way the host OS "sees" the threads spun up by MySQL.
If you are sure you only started one sever, you can check the number of actual processes by running: ps auxww|grep mysql
You can also limit the number of connections by setting: max_user_connections in your MySQL configuration.
If you have multiple MySQL instances running, you can check your threads by running: show full processlist

limit the number of cores used by MySQL [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
On Linux, can you ensure that MySQL leaves one core free?
(We have a small Python server that can become unresponsive when MySQL running on the same box is under load.)
3 ways I can think of...
Use the command taskset.
This command will "fix" specific core (or list of cores) to a specific process.
Consult the man page how to use it
Create Virtual machine on your "little" server and run the mysql on that VM.
This will promiss more stability to both services
Use the "nice" values to make sure the python priority is higher then the mysql priority.
(This solution is the least recommanded of all three, but in some cases it can be valid)

Mysql Server 5 vs 6 vs MariaDB [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
Have a simple question here.
I've a database with around 1 billion records, a server with 200GB of ram to handle it.
What do you suggest for best performances? Mysql 5, Mysql 6 or MariaDB?
MariaDB 5.3 should give you the best performance:
It uses the XtraDB (InnoDB improved) storage engine from Percona as
default.
The optimizer is greatly improved to handle big data.
Replication is a magnitude faster in MariaDB if you have lots of
concurrent updates to InnoDB.
See http://kb.askmonty.org/en/what-is-mariadb-53 for a list of features.

Migrating Maintenance Plan from One Sql Server 2008 Instance to Another [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have an extensive maintenence plan on one sql server 2008 instance that I wish to move to 4 other instances. What is the best way to do this other than rebuilding it on each server?
Thanks
You could try connecting to integration services on the server, expand msdb, maintenance plans and export the plan.