Quantcast
Channel: MySQL Forums - Utilities
Viewing all 380 articles
Browse latest View live

mysqldiff useful or useless? other options? (6 replies)

$
0
0
Hello -

I have used mysqldiff. I agree with the comments in the bug report
part of which is copied at the end. Among other things, the comment said:

"it's completely useless as it is, mysqldiff produces imaginary
diffs dropping all the keys just because mysql decides to output
keys in create table in different order"

And from the response of developers is very stiff.

- Is there any hope to make this tool useful?
- What is the difference between mysqldiff and mysqldbcompare?
Looks like the latter is an old version of mysqldiff.
- Is there any other tools that can be used to serve the same purpose,
either GUI or command line, free or commercial? Redgate's mysql compare
does the job, but I was told that they are dropping the development
and support to concentrate on MS SQL.

Thanks.


http://bugs.mysql.com/bug.php?id=65169

[26 Apr 20:57] Charles Bell

Fixed in release-1.2.2.

[3 May 5:02] Philip Olson

Fixed as of the upcoming MySQL Utilities 1.2.2, and here's the
changelog entry:

The "mysqldiff" utility would consider two tables as different if the
columns or indexes were ordered differently.

Thank you for the bug report.

[22 May 9:01] Ricardo Oliveira

This bug is not fixed. I can reproduce it on:
MySQL Utilities mysqldiff version 1.3.1 (part of MySQL Workbench
Distribution 5.2.47) on ubuntu 12.04 (compiled from source)

--changes-for argument will bring back all the wrong diffs based on order of statements. Also it seems you guys still didnt get this right. If server1 has table t1 and server2 does not, the output show show the sql statement creating table t1, just like the GUI version does. As it is right now, the command line tools are pretty useless.

[5 Sep 7:08] Ricardo Oliveira

is anyone still maintaining this code? it's completely useless as it is, mysqldiff produces imaginary diffs dropping all the keys just because mysql decides to output keys in create table in different order

crash recovery of sync_binlog=1 and innodb_flush_log_at_trx_commit=2 (1 reply)

$
0
0
Hey

recently i discussed the crash recovery with sync_binlog=1 and innodb_flush_log_at_trx_commit=2 with one of my colleagues. What i understood is that mysql will write the statement into the binary log and will hand over the statement to innodb. On innodb level the statement is written into the redo log that is also known as logfile. Since the logfile is not flushed after every commit to save I/O, my question is:

what will happen if the logfile is not fsync'ed but:
1) binary log is written and flushed
2) statement is handed over to innodb
3) innodb finished its work and data is still on memory and not on the logfile
4) power failure will occur

Since the data is on the binary log but not on the logfile, is Mysql 5.5/5.6 able to recover in such situations and how it works? On the documentation of 5.0 its said that there is a state between binlog and innodb that the statement is present on binlog but will be rolled back on innodb
http://dev.mysql.com/doc/refman/5.0/en/binary-log.html. this state will not occour if the xa support is enabled...
in case of a power failure and not fsync'ed logfile, this state will not been reached, since the logfile is untouched.

any ideas if the missing statements on the binlog will be re-executed?

Shutdown Times when using Mysql over NFS (1 reply)

$
0
0
I am running mysql using NFS.
Everything seems to work fine and the performance seems to meet our expectations. However, I notice during our testing that after I run mysql under a load (sysbench) for a while, the shutdown times are in terms of hours? I have reducd the innodb log size to 32M and it still takes hours. A similar test using local disks takes about 5 minutes to shutdown.

Has anyone seen this great of disparity and long shutdown times when using NFS?
Any guidance? Although I have not tested it, I suspect that the recovery times would be about the as the shutdown times.

PHP Mysql web application that works windows server 2008R2 IIS7, SELECT, UPDATE, DELETE, but does not function INSERT (1 reply)

$
0
0
Good Day,

I installed PHP and MySQL,

Put a link PHP Mysql web application that works windows server 2008R2 IIS7, SELECT, UPDATE, DELETE, but does not function INSERT.

The same application other server Xampp is running at 100%.


Ernest

mysqldbcompare output too long for command line window (1 reply)

$
0
0
hi, how can I capture all the output of mysqldbcompare?
I am going to compare two databases with mysqldbcompare,
I used the command line, both windows cmd.exe, both mysqluc.exe,
the problem is that the output of mysqldbcompare is too long, and then in cmd.exe window you can read only the last part, instead the first part of the output is no longer visible,
how can I do to display the full output ?
maybe you can run a mysql-utility from mysql_worbench, and get the output of mysqldbcompare in a dialog mysql_worbench?
or, you can direct the output of mysqldbcompare in a log file?
thanks

mysqlfailover plugin not found (2 replies)

$
0
0
Hi Folks,

I wanted to test how good is mysqlfailover module is. I have downloaded 5.6.15 from GA community one. And installed, but I don't see mysqlfailover or replication related plugins in /usr/bin . Can you please let me know if I can download that plugin alone? If yes, from where?

Regards,
Mannoj

Not able to run the fabric commands (10 replies)

$
0
0
Hi,

MYSQL 5.6 on Win7 64 bit

Downloaded and installed MYSQL utilites using following link

http://mysqlblog.fivefarmers.com/2013/10/03/installing-mysql-fabric-on-windows/

I am able to run list-commands and help, but no other commands are working for me, getting following error

D:\Program Files\MySQL\mysql-utilities-1.4.0\scripts>mysqlfabric.py manage setup
Traceback (most recent call last):
File "D:\Program Files\MySQL\mysql-utilities-1.4.0\scripts\mysqlfabric.py", line 169, in <module>
command, args = create_command(group_name, command_name)
File "D:\Program Files\MySQL\mysql-utilities-1.4.0\scripts\mysqlfabric.py", line 126, in create_command
config = Config(options.config_file, options.config_params)
File "D:\Program Files\phython\lib\site-packages\mysql\fabric\config.py", line 86, in __init__
self.readfp(open(config_file))
IOError: [Errno 2] No such file or directory: 'D:\\Program Files\\MySQL\\mysql-utilities-1.4.0\\etc\\mysql\\fabric.cfg'




Thanks
Mahesh

Backup 1/3 smaller with new mysqldbexport? (2 replies)

$
0
0
I've been doing backups of our database for over a year using mysqldbexport.
The utilities used were those bundled with Workbench 5.2. I'd installed the python 2.6 run-time environment and was calling the modules directly from a batch file, without loading workbench. When I first set this up, I also created a mysqldbimport batch file and verified that I could restore the database properly.
I've watched my backups grow gradually as expected for over a year, as new data is entered into the database. The final backup using the 5.2 .py modules came to 822MB.

I recently updated to MySQL Workbench 6.0, and found the MySQL Utilities are now compiled .exe files, and are a separate download. I opted for the 1.4.1 beta release, installed it, adjusted my batch file, and ran a backup. I call mysqldbexport with these optional parameters: --bulk-insert --export=both

The first backup I produced with the new mysqldbexport.exe created a file 568MB in size, using the same input that created an 822MB file with the older .py version. I looked in the release notes and did not see mention of any changes that would cause this drastic of an output reduction.

I am concerned that mysqldbexport may no longer be functioning correctly and thought I might save time investigating by first asking if this reduction in file size is being realized by all and is to be expected?

Thank you.

Dumb Client Connections (1 reply)

$
0
0
Hello,

I'm interested in sharding our data using mysql fabric.

From everything I've read thus far mysql fabric requires that clients hit the shard key when making requests/queries.

Is it possible to just use a vanilla SQL client like mysqlworkbench or sequel pro to query our sharded database without hinting?

MySQL Fabric - Release Candidate (no replies)

mysql utilities mysqlrplcheck = WARN check master info file (3 replies)

$
0
0
It's my first time playing with mysql utilities 1.4.2 and decided to try mysql replication master/slave test setup on my local Virtualbox by setting up a 2nd mysql server instance on port 3307 with datadir at /var/lib/mysql2.

When i run a mysqlrplcheck I get a warning for Check master information file - Cannot read master information file from a remote machine. ? Am I missing a step ??

###########
BACKGROUND
###########

Both master and slave use MariaDB 5.5.36 on CentOS 6.5 64bit.

master
host=localhost
port=3306
datadir=/var/lib/mysql

slave
host=localhost
port=3307
datadir=/var/lib/mysql2

##############
mysqlreplicate
##############

I used mysqlreplicate to setup the master and slave:

mysqlreplicate -vv --master=root:${ROOTPASS}@localhost:3306 --slave=root:${ROOTPASS}@localhost:3307 --rpl-user=repuser:reppass --pedantic
# master on localhost: ... connected.
# slave on localhost: ... connected.
# master id = 1
# slave id = 3307
# master uuid = None
# slave uuid = None
# Checking InnoDB statistics for type and version conflicts.
# Checking storage engines...
# Checking for binary logging on master...
# Setting up replication...
# Connecting slave to master...
# CHANGE MASTER TO MASTER_HOST = 'localhost', MASTER_USER = 'repuser', MASTER_PASSWORD = 'reppass', MASTER_PORT = 3306, MASTER_LOG_FILE = 'mysql-bin.000002', MASTER_LOG_POS = 492
# Starting slave from master's last position...
# IO status: Waiting for master to send event
# IO thread running: Yes
# IO error: None
# SQL thread running: Yes
# SQL error: None
# ...done.

#################
mysqlrplshow
#################

mysqlrplshow --master=root:${ROOTPASS}@localhost:3306 --discover-slaves-login=root:${ROOTPASS}
# master on localhost: ... connected.
# Finding slaves for master: localhost:3306

# Replication Topology Graph
localhost:3306 (MASTER)
|
+--- localhost:3307 - (SLAVE)

###########
Question:
###########
When i run a mysqlrplcheck I get a warning for Check master information file - Cannot read master information file from a remote machine. ? Am I missing a step ??

mysqlrplcheck --master=root:${ROOTPASS}@localhost:3306 --slave=root:${ROOTPASS}@localhost:$slaveport -s
# master on localhost: ... connected.
# slave on localhost: ... connected.
Test Description Status
---------------------------------------------------------------------------
Checking for binary logging on master [pass]
Are there binlog exceptions? [pass]
Replication user exists? [pass]
Checking server_id values [pass]
Checking server_uuid values [pass]
Is slave connected to master? [pass]
Check master information file [WARN]

Cannot read master information file from a remote machine.

Checking InnoDB compatibility [pass]
Checking storage engines compatibility [pass]
Checking lower_case_table_names settings [pass]
Checking slave delay (seconds behind master) [pass]

#
# Slave status:
#
Slave_IO_State : Waiting for master to send event
Master_Host : localhost
Master_User : repuser
Master_Port : 3306
Connect_Retry : 60
Master_Log_File : mysql-bin.000002
Read_Master_Log_Pos : 492
Relay_Log_File : hostname.000002
Relay_Log_Pos : 529
Relay_Master_Log_File : mysql-bin.000002
Slave_IO_Running : Yes
Slave_SQL_Running : Yes
Replicate_Do_DB :
Replicate_Ignore_DB :
Replicate_Do_Table :
Replicate_Ignore_Table :
Replicate_Wild_Do_Table :
Replicate_Wild_Ignore_Table :
Last_Errno : 0
Last_Error :
Skip_Counter : 0
Exec_Master_Log_Pos : 492
Relay_Log_Space : 828
Until_Condition : None
Until_Log_File :
Until_Log_Pos : 0
Master_SSL_Allowed : No
Master_SSL_CA_File :
Master_SSL_CA_Path :
Master_SSL_Cert :
Master_SSL_Cipher :
Master_SSL_Key :
Seconds_Behind_Master : 0
Master_SSL_Verify_Server_Cert : No
Last_IO_Errno : 0
Last_IO_Error :
Last_SQL_Errno : 0
Last_SQL_Error :
Replicate_Ignore_Server_Ids :
Master_Server_Id : 1
# ...done.


#####################
mysqlrpladmin health

#####################

mysqlrpladmin --master=root:${ROOTPASS}@localhost:3306 --slave=root:${ROOTPASS}@localhost:$slaveport health
# Checking privileges.
#
# Replication Topology Health:
+------------+-------+---------+--------+------------+---------+
| host | port | role | state | gtid_mode | health |
+------------+-------+---------+--------+------------+---------+
| localhost | 3306 | MASTER | UP | NO | OK |
| localhost | 3307 | SLAVE | UP | NO | OK |
+------------+-------+---------+--------+------------+---------+

###
diff compare of both datadirs

diff -qr /var/lib/mysql /var/lib/mysql2

Files /var/lib/mysql/aria_log.00000001 and /var/lib/mysql2/aria_log.00000001 differ
Files /var/lib/mysql/aria_log_control and /var/lib/mysql2/aria_log_control differ
Files /var/lib/mysql/hostname.localdomain.pid and /var/lib/mysql2/hostname.localdomain.pid differ
Only in /var/lib/mysql2: hostname-relay-bin.000001
Only in /var/lib/mysql2: hostname-relay-bin.000002
Only in /var/lib/mysql2: hostname-relay-bin.index
Only in /var/lib/mysql2: master.info
Files /var/lib/mysql/mysql/user.MYI and /var/lib/mysql2/mysql/user.MYI differ
Only in /var/lib/mysql: mysql-bin.000001
Only in /var/lib/mysql: mysql-bin.000002
Only in /var/lib/mysql: mysql-bin.index
Only in /var/lib/mysql2: mysqld.log
File /var/lib/mysql/mysql.sock is a socket while file /var/lib/mysql2/mysql.sock is a socket
Only in /var/lib/mysql2: relay-log.info

Any suggestions as to anything I have overlooked would be very much appreciated :)

cheers

How to get from a single MySQL server to a scalable Continuent Tungsten cluster (no replies)

$
0
0
Thursday, May 22nd
Register at https://www1.gotomeeting.com/register/116183801

In this live virtual course, you will learn how to get from a single database server to a scalable cluster, or from a brittle MySQL replication system to a transparent, manageable Continuent Tungsten cluster.

We discuss the benefits of leveraging Continuent Tungsten clustering with MySQL, and walk you through the steps to implement a Continuent Tungsten cluster in Amazon EC2. We cover the prerequisites, installing and configuring Continuent Tungsten, and best practices that are part of most production installations and proof-of-concepts.

Course Topics:

- Configuring MySQL and the OS for a proper Continuent Tungsten installation
- Installing a cross-site Continuent Tungsten cluster
- Online maintenance by performing a schema upgrade on the master database server with no application downtime (switch operation)
- Automatic master failover upon a MySQL database server failure
- Recovery of a failed master to a fully operational cluster member with a single command (recover operation)
- Disaster recovery by switching database operations to another data center or AWS region (geo-clustering, cross-site 'switch' operation)
- Multi-master operations across multiple geographic regions

We'll also demonstrate basic operations, such as adding and removing a cluster node, basic monitoring and troubleshooting, and discuss the basic failure scenarios. Learn how to quickly configure and provision highly optimized Continuent Tungsten deployments in the cloud or on-premises.

Register at https://www1.gotomeeting.com/register/116183801

Going from MySQL 5 single active/passive to active/active (2 replies)

$
0
0
Hi,
I currently have a setup where two nodes are running RHEL 5.x and MySQL Enterprise 5.
These two nodes are configured with a HP ServiceGuard(SG) solution that enables an active/passive scenario.
The SG software takes care of starting/restarting MySQL services on the other node if the primary node fails.

Now due to some needs we are exploring a MySQL active/active scenario where the same DB is up and running on the two nodes at the same time and being accesed by both MYSQL services running on each node.

So far I understand that I need to use a POSIX compliant fs such as GFS. But I would like to have more information as to what MySQL needs to be configured in active/active.

Due to my probably poor googling skills I am only able to find active/passive and/or replica scenarios, which I do not want.

thanks for your help.

MySQL Fabric is now GA (no replies)

$
0
0
MySQL Fabric is now GA!

MySQL Fabric is a new framework that automates High Availability (HA) and/or sharding (scaling-out) for MySQL and it has just been declared Generally Available.

The post at http://www.clusterdb.com/mysql-fabric/mysql-fabric-adding-high-availability-and-scaling-to-mysql focuses on MySQL Fabric as a whole – both High Availability and scaling out (sharding). It starts with an introductions to HA and scaling out (by partitioning/sharding data) and how MySQL Fabric achieves it before going on to work through a full example of deploying HA with MySQL Fabric and then adding sharding on top.

Case studies / references for Fabric in production? (1 reply)

$
0
0
We are re-writing a large subsystem that will likely approach 1 billion records within about 2-3 years. We'll be using a custom sharding framework that we've already been running successfully in prod for a couple years, but I'm looking at Fabric for HA (each shard would actually be an HA group). It seems like a godsend so far. Are any customers using it in production yet, or close to doing so?

In addition to knowing I'm not the first guinea pig, I'd be interested in some best practices regarding number of secondaries, where those secondaries are (one in the same data center, one somewhere else?), type of replication (sync, async, or semi-sync?), etc.

Thanks,
Bill

prepareCall (no replies)

$
0
0
MySQL Fabric: 1.4.3
MySQL ConnectorJ: 1.5.30

I am getting a NullPointerException during a prepareCall when connecting to a MySQL Fabric group. If I connect to the Primary or Secondary server directly the prepareCall is successful. Also, if I use a prepareStatement when connecting via fabric the call is successful.

Any ideas on what might cause this issue?

Connection Strings:
Fabric: jdbc:mysql:fabric://10.199.248.111:32274/employees?fabricServerGroup=group_1&fabricUsername=admin&fabricPassword=admin
Primary: jdbc:mysql://10.199.248.153:3306/employees

Stored Proc:
DELIMITER $$

CREATE DEFINER=`fabric`@`%` PROCEDURE `sp_person_create`(
IN vchFirstName VARCHAR(255),
IN vchLastName VARCHAR(255),
OUT iOutId int
)
BEGIN
INSERT INTO persons(first_name, last_name)
VALUES (vchFirstName, vchLastName);

SET iOutId = LAST_INSERT_ID();
END

Method Call that throws exception:
CallableStatement cs = connection.prepareCall("{call sp_person_create(?, ?, ?)}");

Stack Trace:
java.sql.SQLException: java.lang.NullPointerException
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1084)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:987)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:973)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:918)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:949)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:939)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:433)
at com.mysql.jdbc.CallableStatement.getInstance(CallableStatement.java:524)
at com.mysql.jdbc.ConnectionImpl.parseCallableStatement(ConnectionImpl.java:4334)
at com.mysql.jdbc.ConnectionImpl.prepareCall(ConnectionImpl.java:4418)
at com.mysql.jdbc.ConnectionImpl.prepareCall(ConnectionImpl.java:4392)
at com.mysql.jdbc.LoadBalancedMySQLConnection.prepareCall(LoadBalancedMySQLConnection.java:2159)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.mysql.jdbc.LoadBalancingConnectionProxy.invoke(LoadBalancingConnectionProxy.java:644)
at com.mysql.jdbc.LoadBalancingConnectionProxy.invoke(LoadBalancingConnectionProxy.java:549)
at com.sun.proxy.$Proxy28.prepareCall(Unknown Source)
at com.mysql.jdbc.ReplicationConnection.prepareCall(ReplicationConnection.java:543)
at com.mysql.fabric.jdbc.FabricMySQLConnectionProxy.prepareCall(FabricMySQLConnectionProxy.java:696)
at com.jolbox.bonecp.ConnectionHandle.prepareCall(ConnectionHandle.java:902)
at com.pearson.grid.assessments.controller.PersonController$PersonGenerator.run(PersonController.java:272)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
at com.mysql.jdbc.DatabaseMetaData.getCallStmtParameterTypes(DatabaseMetaData.java:1770)
at com.mysql.jdbc.DatabaseMetaData.getProcedureOrFunctionColumns(DatabaseMetaData.java:4508)
at com.mysql.jdbc.JDBC4DatabaseMetaData.getProcedureColumns(JDBC4DatabaseMetaData.java:106)
at com.mysql.jdbc.CallableStatement.determineParameterTypes(CallableStatement.java:857)
at com.mysql.jdbc.CallableStatement.<init>(CallableStatement.java:630)
at com.mysql.jdbc.JDBC4CallableStatement.<init>(JDBC4CallableStatement.java:46)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:409)
... 19 more

Fabric implementation in Read/Write for a2billing (no replies)

$
0
0
Hi All,

We use a2billing, which is a PHP core system, written for Asterisk, to carry calls billing.
Exactly, and right now, I have 4 servers, in different world wide locations, and in one of them, I have the MySql server. So, all servers are connected remotely to the master to sort all over sql quarries.

Using Mysql Replication is not really fit for me, as all server need to do simultaneously select/show/update/insert quarries, so, replications in local server can't be really perform my need.

So, here, as far as I understood, using your Fabric solution, it can be fit for this, but my doubt still regarding the number of quarries, because in total, for each single asterisk call, I need to carry 25 carries to the SQL server, so, if I have 4 servers, and 500 calls simultaneously, in each one, it's mean, the fabric have to accept and carry +50K quarries per second, from all, within select/show/update/insert at the same time...

Dose this fit for my need, here??

Regards,

Harnessing the Power of Master/Slave Clusters to Operate Data-Driven Businesses on MySQL (no replies)

$
0
0
Webinar, Thursday July 10th
Register at https://www1.gotomeeting.com/register/656075192

Users seeking high availability, DR and zero downtime maintenance operation for business-critical MySQL applications face confusing choices. Is multi-master or master/slave clustering better? What about synchronous versus asynchronous replication? Using a plain vanilla, stock MySQL or a modified version of it? Which of these choices are right for data-driven businesses that depend on fast, reliable data access?

This no-BS webinar will cut through the FUD to explore the real trade-offs between the different clustering and replication methods, then show you how Continuent Tungsten asynchronous master/slave clusters support these important capabilities for business-critical applications:

· High application write rates
· Mixed workloads consisting of large and small transactions
· Data across multiple geographically distributed locations
· Failures and more importantly recovery from them
· Zero downtime maintenance and software upgrades
· Use of off-the-shelf MySQL/MariaDB to avoid application changes and allow clusters to improve as MySQL itself does

We will illustrate key points with demonstrations and case studies from deployed systems. Join us for an educational session on the cutting edge of MySQL data management!

Register at https://www1.gotomeeting.com/register/656075192

What are the mechanisms of the fabric cache? (no replies)

$
0
0
On the following code?
config = {
'fabric': {
'host': '127.0.0.1',
'port': 32274,
'username': 'fabric',
'password': 'fabric',
'report_errors': True
},
'user': 'fabric',
'password': 'fabric',
'database': 'test1',
'autocommit': 'true'
}
What are the mechanisms of the fabric cache?

mysql fabric for PHP (1 reply)

$
0
0
hi
I want use mysql fabric for php but i can't find a intact demo for it.

I search on Google many people say Connector/PHP with MySQL Fabric can use mysqlnd_ms. so i use mysqlnd_ms for PHP.

my fabric.cfg is
----------------------------------

[DEFAULT]
prefix =
sysconfdir = /etc
logdir = /var/log

[storage]
address = localhost:3306
user = fabric
password = fabric
database = fabric
connection_timeout = 6
connection_attempts = 6
connection_delay = 1

[servers]
user = oracle
password = oracle

[protocol.xmlrpc]
address = 192.168.1.100:32274
threads = 5
user = admin
password = admin
disable_authentication = no
realm = MySQL Fabric
ssl_ca =
ssl_cert =
ssl_key =

[executor]
executors = 5

[logging]
level = INFO
url = file:///var/log/fabric.log

[sharding]
mysqldump_program = /usr/bin/mysqldump
mysqlclient_program = /usr/bin/mysql

[connector]
ttl = 1

[failure_tracking]
notifications = 300
notification_clients = 50
notification_interval = 60
failover_interval = 0
detections = 3
detection_interval = 6
detection_timeout = 1
prune_time = 3600

--------------------------------------
my mysqlnd_ms's json is

-------------------------

{
"myapp": {
"fabric": {
"hosts": [
{
"host" : "192.168.1.100",
"port" : "32274"
}
]
}
}
}


-------------------------
And my php is
<?php

$c = new mysqli("fabric", "admin", "admin", "test");

?>

and i'm fail.

can Which friend give me a good demo .thank you!
Viewing all 380 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>