Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MYSQL


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Mutiple Accounts


I am looking for a solution for this and havent been able to find it anywhere i think i am searching for the wrong keywords or strings...
i want to be able to allow users to create there own database's in there account but limit the database's that they can create to a prefix on every data base (diffrent prefix for diffrent users)Also is it possible they can create users that only have access to the database's in the master account?.i am trying to stay out of the admin role as much as possible it's just internal office applications that staff can use mostly a sandbox so security is not an issue.




View Complete Forum Thread with Replies

Related Forum Messages:
Joining Mutiple Times
I have the following situation and I can't figure out what method to use.

I have a table with items, for these items I want to know which user inserts a row and I want to know who updates a row. In the table I store both user-ids.

The user information is stored in an other table.

How can I link both user names to the one row in the items table?

View Replies !
Mutiple Unique Columns
Is it possible to create a mySQL table with multiple unique columns?
I have some data being parsed into the mySQL table that frequently has duplicate lines of data. I would like to be able to exclude these duplicate lines of data without having to exlude all other duplicate data in other columns that have some same data but is not a complete line duplicate.
right now I can only set one column in the mySQL table to "unique" - if I try to set another column as unique, I get errors on the table.

View Replies !
Delete Rows In Mutiple Tables
Using MySQL 4.0
I have 4 tables (T1, T2, T3, T4)

T1 - has the object that I would like to delete (across these tables) as the pk (known as object_pk)

T4 - will have one row of info that would correspond to T1's pk (with the field object_pk)
BOTH T2 & T3 has many rows would correspond to T1's pk (with the field object_pk)

I have been trying to create a delete command that would delete all references to T1's pk in all the tables listed above.

I was hoping that it was as easy as:
DELETE FROM T1, T2, T3, T4
WHERE object_pk = 1

But realized quickly that wasn't the way to go. Been trying various join statments but, being the noob that I am, surely have the syntax all messed up.

View Replies !
Mutiple Table Query - Array Within Row?
I'm trying to build a query that (if it's possible to do in a single query) that can return:

1) mos_users.name

2) user1, user2, etc (which is just phone, email, address info from mos_user_extended) <- which I was able to do with LEFT JOIN

3) ires_tasks.id and ires_tasks.mls WHERE
ires_map.taskID = ires_tasks.id AND
ires_map.userID of mos_users.id

Where I get stuck is there can be more than one "mls" returned.
Can you have an array return within your row? If so, how would you break that down?

I would like to get an output like ....

View Replies !
Multiple Tables Versus Mutiple Databases
In a setting of a web based application (typical LAMP installation) where multiple web users may be logging into the app and accessing data for one of numerous subgroups, each of which requires about 30 tables to run the application, which design will perform better:
A) a single database with a set of identically structured tables for each subgroup differentiated by table name or

B) a database for each subgroup, each with the same table scheme.

In either case the two tables any individual web user will most commonly be accessing for their group have ten's of thousands of records, the remaining 28 or so required tables being much smaller (less than 100 records) and having group specific variables and data to control the application. In all cases the web application interface uses the same php code with the group identifier declared at login which selects either the table subset or group specific db.

In case my question isn't clear scenario A would have a single database with a master table that controls the group numbers by an id, say 1 to 20 and then a set of 30 tables for each like (users_1, data_1, ...), (users_2, data_2, ...),...,(users_20, data_20,...). In this case the single database would have in excess of 600 tables.

Scenario B would have a master database with a table to store individual group id's and each group id would have a database with a name based on their id like db_1, db_2,...db_20. Within any db_* there would be identically structured tables user, data, ... . In this case there would be 20 databases each with only 30 tables plus the master control db.

View Replies !
Table Stores Keys From Mutiple Tables
I'm having a tricking time thinking about the proper way of allowing a table to have a row that holds foreign keys from multiple tables. Heres what I have.

templates
jobs
services

The problem is I want to have a table called user_transactions which I want to hold the foreign key of one of these three tables per entry. The problem is I also need to store what table they are from. My idea was to have a table that stores all the table names and then put that as another foreign key in the user_transaction table.

I included a diagram of what I mean.

Does this seem like the right way to do this. It seems like a weird relation to me.

View Replies !
Search Multiple Words On Mutiple Columns
I would like to search for results in my database where I only get rows that contains all the words I've searched for. So if I search for many words, it doesn't matter if one of the words is in one column and the rest in another column. As long as all the words are in the row.

I've tried with something like: ....

View Replies !
Db Accounts
Does anyone know of a good isp where I can pay for just the use of a mysql database?
I don't know when my provider (pair nwetworks) is going to upgrade and I absolutely need the latest version with unicode support as I need to have many different scripts in the same table.

View Replies !
Accounts
also, can someone please tell me what is the relationship/difference/similarity and interaction betweeen:

1.phpmyadmin login/access
2.mysql login/access
3.database login/access

if a user signs up on my website, how can i give him a separate db automatically upon sign up, with default tables and access to only his db with his login username and password?
also, before accessing his own db, will he connect to the mysql server using a diff p/w?..how exactly will it work?

View Replies !
MySql - Accounts
What privileges does a user need to be able to create new accounts? I
have an account with all privileges including the grant privilege, but
when I try to create a new user with this account, I always get an
access denied error. I'm using an old mySql Version (3.22.32) and a
windows-client with an ODBC connection.

There is no problem to connect, select or update any data in my
database, only with my superuser, only the creation of new user fail.

View Replies !
MySQL Accounts
When I installed mySQL I created administrator account with a different name to root and set a password.

Having just had a look there's 5 accounts:
root (host set to: localhost)
root (host set to: %)
localhost (host is blank)
% (host is blank)
my administrator account (host set to: %)

Can I safely delete root, root, localhost and % accounts? All of my server applications user the administrator account I created.

View Replies !
How To Get All Mysql Accounts?
I want to know which accounts are there in mysql instance via command line.

View Replies !
User Accounts
what I would need to do to carry out Setting up a user account system.

View Replies !
MYSQL Password Accounts
I have been having problems with password accounts in MySQL. I'm setting up the environment for the first time.
from the mysql website the intructions are to set the password on Windows:

shell> mysql -u root
mysql>SET password .........

My question is where do i access "shell>" to start off the code
I have little expreience in writing in the command window so I do apologise if this question is overly remedial

View Replies !
User Accounts With Passwords
I am able to connect to the database using users that are not password protected. After updating privileges to use passwords and changing login info(in a php document) I recieve the following error from the php document:

Warning: mysql_query(): Access denied for user 'ODBC'@'localhost' (using password: NO) in c:inetpubwwwrootgindex.php on line 9

Warning: mysql_query(): A link to the server could not be established in c:inetpubwwwrootgindex.php on line 9

I am attempting to connect as 'test'@'localhost' with the password 'test'. If I remove the password, I can connect no problem.

View Replies !
Setting Up New Mysql Accounts
I have followed the manual for MySQL 5.0 for adding new accounts to MySQL but it will not work for me. I am typing these commands on the root on the actual computer with Every time I input these following commands, the command just returns this:

mysql> Query OK, 0 rows affected (0.00 sec)

mysql> GRANT ALL PRIVILEGES ON *.* TO 'myusername'@'localhost'
-> IDENTIFIED BY 'mypass' WITH GRANT OPTION;

mysql> GRANT SELECT,INSERT,UPDATE,DELETE,CREATE,DROP
-> ON mydatabase.*
-> TO 'myusername'@'localhost'
-> IDENTIFIED BY 'mypassword';

I've also tried this one
mysql> CREATE USER 'myusername'@'localhost' IDENTIFIED BY 'mypassword';

But it returns

mysql> ERROR (HY000): Opteration CREATE USER failed for 'myusername'@'localhost' .

View Replies !
User Accounts Not Recognized
I am the administrator and asks for my password (that's ok because I am the administrator). The downside is, no where did it ask me for a user name. I've tried using "root", because, well it is the root file and I am the administrator.
Just to test this out, I set up another account and password. MySQL acknowledged it and going through and being set up correctly, but I can't log on as that person or access it through PHP. I was reading in the reference manual that GRANT files should be automatically set up. When I go into my MySQL file,I don't see anything there regarding grants or privileges or users.

When I start writing PHP to create and access databases, how will it recognize me if I never set up a user name? Perhaps this should be in the PHP forum?

View Replies !
Sum, Union And Balancing Accounts
One of my clients has a very complex accounts system, which has issues that I've been brought in to fix. The first stage I want to start with is a report showing which transactions don't balance. Code:

View Replies !
Setting Up Initial Accounts In MySQL
I'm a newbie to MySQL. In setting up my initial accounts, I see two
anonymous users in the mysql database in the user table. My book says to
delete them which I did, but I still see what looks like two root accounts.
Is this normal? If not, which one do I delete? I see one doesn't yet have
a password; should I delete the one without a password? First I'll log out
and log back in as root to see if that other root user is a phantom or is
really an account. Next, I'll need to add a few users, but I need to make
sure this root thing is correct.

Here's a screen shot of wht I did:

mysql> use mysql
Database changed

mysql> select user.user from user;
+------+
| user |
+------+
| |
| root |
| |
| root |
+------+
4 rows in set (0.02 sec)

mysql> delete from user where user='';
Query OK, 2 rows affected (0.01 sec)

mysql> select user.user from user;
+------+
| user |
+------+
| root |
| root |
+------+
2 rows in set (0.00 sec)

View Replies !
Moving Data And Accounts When Upgrading
Before upgrading my directory structure looks like:

/usr/local/myslq-4.0.21
/usr/local/myslq@ -> mysql-4.0.21

After I install an upgrade it looks like:

/usr/local/mysql-4.0.21
/usr/local/mysql-4.1.12
/usr/local/mysql@ -> mysql-4.1.12

The upgrade instructions then say to run "mysql_fix_privilege_tables" but the privilege tables should not need fixing since the only thing in the mysql-4.1.12/data directory are the new "mysql" and "test" databases and they should not need fixing. Also none of my old user accounts and data are there.

Am I supposed to do something to copy the old data directory to the new data directory and then fix the privilege tables? Something like "(cd mysql-4.0.21; tar cf -) | (cd mysql-4.1.12; tar xf -)"? Or should my data directory be independent of the mysql directory and used from each installation?

View Replies !
USer Accounts Creation With MySQL
I am trying to create a website that uses ASP.NET interfacing wth a MySQL database, this is more of a Design based question (I think!). I need users to automatically register an ccount online and create entries within the tables in a specific database.

How do I manage this, do i have to create a new user each time by the query GRANT? If so I am planning to have many users logging in to a big table that has a lot of other data for other users (they will be identofoable by an ID column i.e Joe_Bloggs). what do I set as permissions to that particular table, as potentially they could change someone elses information.

I may just need a pointer to how you actually go about designing a system as I have described and manage all the users information to allow a good level of security and scalability for expanding the application at a later date.

Is it better just to create a new table within the databse each time a new user is created as that way I would be able to grant that particular table (i.e. Joe_Bloggs_Table) the correct permmisions.

View Replies !
Backup/restore User Accounts
I have mysql 5.0.14? installed.
I need to make a fresh installation of 5.0.18 (no update).
I can create a backup of my database (export) and import it
into the new version.

But how can I migrate my useraccounts?

The probem is, I tried re-creating a user with same pwd in the new version,
assigned privileges to that user and the user to my freshly imported database,
but when trying to access the DB using a script, it tells me that "user" has no access.

View Replies !
Connect To Database With Passworded Accounts
I am migrating my databases from mysql 4.0.x to 4.1.7 and i'm having the following problem:
When i create accounts with passwords, i can't connect to databases with them. It only works with non-passworded accounts. I tried to put old_passwords=yes in my my.ini file, but it didn't work.

View Replies !
Adding New User Accounts :: Access Denied
I have read Ref Manual 5.9.2 Adding New User Accounts and 5.8.8 Causes of Access Denied.

I am running SUSE 10.1:

/usr/sbin/mysqld Ver 5.0.18 for suse-linux on i686 (SUSE MySQL RPM)

This works:

mysql -u root -ppassword mysql
Using user root, from Python I can access sql, add data to tables, etc. but I want to set up other users and access mysql from other than localhost.

I tried this (as suggested in 5.9.2):
mysql> GRANT ALL PRIVILEGES ON *.* TO 'pwh'@'localhost'
-> IDENTIFIED BY 'password' WITH GRANT OPTION;
mysql> GRANT ALL PRIVILEGES ON *.* TO 'pwh'@'%'
-> IDENTIFIED BY 'password' WITH GRANT OPTION;

But this happens:
mysql -u pwh -ppassword
ERROR 1045 (28000): Access denied for user 'pwh'@'localhost' (using password: YES)

Ref man 5.8.8 says if all else fails, reinstall from the source. I started to do that but got stuck. I would rather not if it can be avoided.

View Replies !
Number Of User Accounts For Large Database
I have a large database (816 tables with 11 fields each, each field could hold up to 50 entires) and I'd like to know if each table should have its own user account (created in Cpanel and used in the config file to access the database).

May sound like a simple question to some but I need to know in case we have a lot of traffic and 1 user account is not "enough" for all visitors to access the database info.

View Replies !
Most Efficient Way Of Storing Data From Multiple Accounts
As part of a system I am putting together I need to allow users to create thier own accounts on my servers. Each user can create their own account, and then have their users register for it. Each account needs it data seperate from the others, a member registered for one account should not be able to view another account and a username registered with one account should still be available to the other accounts.

The ways I have been looking at are:

1. Create a new database for every account created so that all users are kept in seperate databases.

2. Have one table for users, one for topics, one for posts etc and then associate each row within this table with the relevent account. So for example a user could register with the forum with the ID 4, so their user entry would be

Userid: 234
Username: xxxx
Password: xxxx
Forumid: 4

Then when a new member registers with any account I simply check that there is not another user with the same account ID and username. Indexes on relevent fields in this system could help speed up huge tables.

I expect to quickly have 20,000 plus accounts (and in theory it could go up to hundreds of thousands).

I guess my question is which of these methods is better from a speed point of view once we get a large number of accounts and users. Also, are there restrictions on the number of fields in a table that could cause problems?

Using MySQL by the way, on an Apache server.

View Replies !
How To Save Accounts Based On Variable Amounts Of Time
I'm currently building a website where users can signup for various accounts.
An account may last 30 days, 12 months or 24 months.
If a user's account is about to expire, an email notification is send, via a CRON Job.

I want to save the different account types in the database, but I'm not sure how to save the duration of an account. If it was all months, I could simply save &#3912;' or &#3924;' as an INT, but it also has an account for 30 days, which is more flexible.

Edit:

It would also be nice if I could ORDER BY duration..


View Replies !
Guests Saving Information To A Databse And Linking DB Data To Accounts
When someone logs into my site, they can generate an image. I would want them to, after logging in, be able to click a link (or button) that would save the image(url) in a DB. Then, by visiting another page, they could visit all the images they have saved(urls) which would recall them based on their username.

View Replies !
Why Dont Shared Hosting Accounts Provide Stored Procedures And Triggers?
i am searching for 3 days now for a reliable, fast hosting company, which supports stored procedures and triggers on mysql5. most of them dont support this, because mysql5 has a design-flaw in which it stores procedures and triggers on a root level-area (tables mysql information_schema). due this logic, most of the hosting companies wont allow you to create/run procedures and triggers. funny, that hosting companies forbid you to use new technologies and methods to build faster.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved