Triggers

2013-05-10 Thread Aastha
If triggers use complex business rules and large transaction.
What would we be recommendations?
I need three possible ways.

Thanks,


Re: monitoring tool

2012-10-10 Thread Aastha
it should do the following:

1. give the status of the health of the nodes -Primary concern
2. Give slow queries
3. NO  or reads etc
4. No of users logged in
5. Other admin tasks

On Wed, Oct 10, 2012 at 1:20 PM, Manuel Arostegui  wrote:

>
>
> 2012/10/10 Aastha 
>
>> Hi,
>>
>> Are there any open source MYSQL rela time monitoring tools available in
>> the
>> market.
>>
>> Aastha
>>
>
> Hello Aastha,
>
> You should try to be more specific when asking for stuff.
> What do you want to monitor? reads/writes? QPS? threads? etc
>
> Thanks
> Manuel.
>
>


monitoring tool

2012-10-10 Thread Aastha
Hi,

Are there any open source MYSQL rela time monitoring tools available in the
market.

Aastha


Re: user last activity and log in

2012-10-04 Thread Aastha
Yes, i meant DB users.

On Thu, Oct 4, 2012 at 10:57 AM, Johan De Meersman wrote:

>
> - Original Message -
> > From: "Reindl Harald" 
> >
> > this makes pretty no sense and is NOT the job of a RDBMS
> > implement it in your application / db-abstraction-layer
>
> I notice no specification of what kind of users, so I'm assuming DB users.
> There *is* such a thing: you can find it in the general query log. Turning
> that on is a considerable performance overhead, though, and so is firmly
> discouraged on production systems.
>
>
> --
> Linux Bier Wanderung 2012, now also available in Belgium!
> August, 12 to 19, Diksmuide, Belgium - http://lbw2012.tuxera.be
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe:http://lists.mysql.com/mysql
>
>


user last activity and log in

2012-10-04 Thread Aastha
Hello,

I want to find the last time the given list of users logged in.
Is there any mysql table from where i can retrieve the data or anyt
specific sql


Aastha Gupta


Re: Mysql cluster installation error

2012-09-23 Thread Aastha
Thanks!
And how do i connect the cluster from the remote host.
When i try to connect one of the SQL node through remote host it says
access denied.
WHile the same is working fine from local host.
Kindly help.
Thanks!

On Sun, Sep 23, 2012 at 12:35 PM, Michael Dykman  wrote:

> If all you need to transfer is schema, do it the same way you would any
> other table type: use mysqldump with the - - no-data option.
>
> On 2012-09-23 1:29 PM, "Aastha"  wrote:
>
> Thanks Nitin.
> I specied the location of my.ini while starting the SQL node and it worked
> fine.
>
> I have anothe rquestion :
> How to connect the cluster and reomte host. And i have to copy a schema
> from one Mysql clsuter to another. How do i do that.
>
> Regards,
>
>
> On Sun, Sep 23, 2012 at 3:13 AM, Nitin Mehta  wrote:
>
> > Hi Aastha,
> >
> > I'm not 10...
>


Re: Mysql cluster installation error

2012-09-23 Thread Aastha
Thanks Nitin.
I specied the location of my.ini while starting the SQL node and it worked
fine.

I have anothe rquestion :
How to connect the cluster and reomte host. And i have to copy a schema
from one Mysql clsuter to another. How do i do that.

Regards,

On Sun, Sep 23, 2012 at 3:13 AM, Nitin Mehta  wrote:

> Hi Aastha,
>
> I'm not 100% sure but you could try defining the full connectstring using:
>
> ndb-connectstring = localhost:1186
>
> See if that helps.
>
> Regards,
>
>
> ____
>  From: Aastha 
> To: mysql@lists.mysql.com
> Sent: Sunday, September 23, 2012 7:51 AM
> Subject: Mysql cluster installation error
>
> Hello,
>
> I am trying to install MySQL cluster on three physical machines.
> Management Node on one machine.
> Data Node on two machines.
> SQL node on the same machine as Management Node.
>
> Management node started
> Data Nodes started
> *SQL node started but not connected to Management NOde and it gives no
> error *
>
> C:\mysql\bin>ndb_mgm -e show
> Connected to Management Server at: localhost:1186
> Cluster Configuration
> -
> [ndbd(NDB)] 2 node(s)
> id=8@172.16.56.8  (mysql-5.5.25 ndb-7.2.7, Nodegroup: 0, Master)
> id=9@172.16.56.9  (mysql-5.5.25 ndb-7.2.7, Nodegroup: 0)
>
> [ndb_mgmd(MGM)] 1 node(s)
> id=6@172.16.56.7  (mysql-5.5.25 ndb-7.2.7)
>
> [mysqld(API)]   1 node(s)
> id=7 (not connected, accepting connect from 172.16.56.7)
>
>
> *config.ini*
>
> [ndbd default]
> # Options affecting ndbd processes on all data nodes:
> NoOfReplicas=2# Number of replicas
> DataDir=C:/mysql/bin/cluster-data   # Directory for each data node's data
> files
> DataMemory=80M# Memory allocated to data storage
> IndexMemory=18M   # Memory allocated to index storage
>
> [ndb_mgmd]
> # Management process options:
> HostName=172.16.56.7# Hostname or IP address of management
> node
> DataDir=C:/mysql/bin/cluster-logs   # Directory for management node log
> files
> NodeId=5
>
> [ndbd]
> # Options for data node "A":
> HostName=172.16.56.8  # Hostname or IP address
> NodeId=8
> MaxNoOfOrderedIndexes=1024
> MaxNoOfAttributes=3000 # added 2012.8.08
>
> [ndbd]
> # Options for data node "B":
> HostName=172.16.56.9   # Hostname or IP address
> NodeId=9
> MaxNoOfOrderedIndexes=1024
> MaxNoOfAttributes=3000 # added 2012.8.08
>
>
>
> [mysqld]
> # SQL node options:
> HostName=172.16.56.7  # Hostname or IP address
> NodeId=7
>
> *my.ini*
> *
> *
> [mysql_cluster]
> # Options for management node process
> config-file=c:/mysql/bin/config.ini
> configdir=c:/mysql/bin/cluster-cache/
>
>
> [mysqld]
> # Options for mysqld process:
> ndbcluster  # run NDB storage engine
> ndb-connectstring=172.16.56.7  # location of management server
> ndb-nodeid=7
> server-id=7
> default-storage-engine=ndbcluster
>
>
> Could anyone help to identify/
>
>
> Aastha Gupta
>


Mysql cluster installation error

2012-09-22 Thread Aastha
Hello,

I am trying to install MySQL cluster on three physical machines.
Management Node on one machine.
Data Node on two machines.
SQL node on the same machine as Management Node.

Management node started
Data Nodes started
*SQL node started but not connected to Management NOde and it gives no
error *

C:\mysql\bin>ndb_mgm -e show
Connected to Management Server at: localhost:1186
Cluster Configuration
-
[ndbd(NDB)] 2 node(s)
id=8@172.16.56.8  (mysql-5.5.25 ndb-7.2.7, Nodegroup: 0, Master)
id=9@172.16.56.9  (mysql-5.5.25 ndb-7.2.7, Nodegroup: 0)

[ndb_mgmd(MGM)] 1 node(s)
id=6@172.16.56.7  (mysql-5.5.25 ndb-7.2.7)

[mysqld(API)]   1 node(s)
id=7 (not connected, accepting connect from 172.16.56.7)


*config.ini*

[ndbd default]
# Options affecting ndbd processes on all data nodes:
NoOfReplicas=2# Number of replicas
DataDir=C:/mysql/bin/cluster-data   # Directory for each data node's data
files
DataMemory=80M# Memory allocated to data storage
IndexMemory=18M   # Memory allocated to index storage

[ndb_mgmd]
# Management process options:
HostName=172.16.56.7# Hostname or IP address of management
node
DataDir=C:/mysql/bin/cluster-logs   # Directory for management node log
files
NodeId=5

[ndbd]
# Options for data node "A":
HostName=172.16.56.8  # Hostname or IP address
NodeId=8
MaxNoOfOrderedIndexes=1024
MaxNoOfAttributes=3000 # added 2012.8.08

[ndbd]
# Options for data node "B":
HostName=172.16.56.9   # Hostname or IP address
NodeId=9
MaxNoOfOrderedIndexes=1024
MaxNoOfAttributes=3000 # added 2012.8.08



[mysqld]
# SQL node options:
HostName=172.16.56.7  # Hostname or IP address
NodeId=7

*my.ini*
*
*
[mysql_cluster]
# Options for management node process
config-file=c:/mysql/bin/config.ini
configdir=c:/mysql/bin/cluster-cache/


[mysqld]
# Options for mysqld process:
ndbcluster  # run NDB storage engine
ndb-connectstring=172.16.56.7  # location of management server
ndb-nodeid=7
server-id=7
default-storage-engine=ndbcluster


Could anyone help to identify/


Aastha Gupta


user accounts using Active Directory

2012-08-22 Thread Aastha
Hello,

I want to create users and give access to different schema within the
database.
I also want to give them selective privileges to access the table in
different schema.

One way is to create users in MySQL and then grant with privileges.

Is there any way to give them access to MySQL database and the tables
within the schema using active directory.
Also. is there a way to create group of privileges and assign users to the
group required.


Thanks,
Aastha Gupta


Error starting data node

2012-08-07 Thread Aastha
Helo,

I am receiving error when trying to start the data node. The configuration
seems ok. Kindly help.

*C:\mysql\bin>ndbd*
*Unable to connect with connect string: nodeid=10,172.17.3.66:1186*
*Retrying every 5 seconds. Attempts left: 12 11 10 9 8 7 6 5 4 3 2 1,
failed.*
*2012-08-07 18:19:20 [ndbd] ERROR-- Could not connect to management
server, e**rror: ''*

*Config.ini on management node :*

[ndbd default]

# Options affecting ndbd processes on all data nodes:

NoOfReplicas=1# Number of replicas

DataDir=C:/mysql/bin/cluster-data   # Directory for each data node's data
files

# Forward slashes used in directory
path,

# rather than backslashes. This is
correct;

# see Important note in text

DataMemory=80M# Memory allocated to data storage

IndexMemory=18M   # Memory allocated to index storage

  # For DataMemory and IndexMemory, we have used the

  # default values. Since the "world" database takes up

  # only about 500KB, this should be more than enough for

  # this example Cluster setup.


[ndb_mgmd]

# Management process options:

HostName=172.17.3.66   # Hostname or IP address of management
node

DataDir=C:/mysql/bin/cluster-logs   # Directory for management node log
files

NodeId=1

[ndbd]

# Options for data node "A":

HostName=172.17.3.69  # Hostname or IP address

NodeId=10

MaxNoOfOrderedIndexes=1024

MaxNoOfAttributes=3000 # added 2012.7.20

[mysqld]

# SQL node A options:

HostName=172.17.3.68   # Hostname or IP address

NodeId=60

[mysqld]

# SQL node B options:

HostName=172.17.3.67   # Hostname or IP address

NodeId=61



*my.ini on management server*

[mysql_cluster]

# Options for management node process

config-file=c:/mysql/bin/config.ini

configdir=c:/mysql/bin/cluster-cache/


*my.ini on data node *

[mysql_cluster]

# Options for data nod process:

ndb-connectstring=172.17.3.66 # location of the management server

ndb-nodeid=10

Kindly help. I have looked at the configuration and things fine to me


Regards,

Aastha Gupta


create roles/groups in MYSQL

2012-08-01 Thread Aastha
Hello,

I have 10 different users and i have to give different accesses to
different tables.
Is it possible to create a groups with different set of access rights on
different tables.

I know there are ROLES and PROFILES in Oracle. Is there something similar
in MySQL.

Thanks,
Aastha Gupta