小编ero*_*ras的帖子

在CPanel中创建的数据库不会显示在phpmyadmin中.有任何想法吗?

问题工作流程:

1 - Open CPanel on your web browser, 
2 - Login to CPanel, 
3 - Mysql databases -> Create a database, 
4 - Create a user, 
5 - Get the confirmation that db and user created and assigned properly, 
6 - Return to Cpanel home->Click phpmyadmin 
7 - The database does not show. Refresh ->nothing changes. 
8 - Return to CPanel->MySQL databases->the database exists there but phpmyadmin does not have it.
Run Code Online (Sandbox Code Playgroud)

我搜索了互联网并尝试了所有相关的解决方案,但没有机会!谢谢...

phpmyadmin cpanel

18
推荐指数
2
解决办法
1万
查看次数

Eclipse给出:"尚未为当前工作空间设置API基线." 错误

我正在使用Eclipse Luna.更新我的沙箱后,我开始在多个模块中收到以下错误消息.我应该添加API基线还是让Eclipse忽略它?

java eclipse-luna

13
推荐指数
1
解决办法
9273
查看次数

使用两个线程向Vector(或ArrayList)写入/读取

我有两个线程,它们都访问Vector.t1添加一个随机数,而t2删除并打印第一个数字.下面是代码和输出.t2似乎只执行一次(在t1开始之前)并永远终止.我在这里错过了什么吗?(PS:同样使用ArrayList测试)

import java.util.Random;
import java.util.Vector;

public class Main {

public static Vector<Integer> list1 = new Vector<Integer>();

public static void main(String[] args) throws InterruptedException {
    System.out.println("Main started!");

    Thread t1 = new Thread(new Runnable() {

        @Override
        public void run() {
            System.out.println("writer started! "); 
            Random rand = new Random();

            for(int i=0; i<10; i++) {
                int x = rand.nextInt(100);
                list1.add(x);
                System.out.println("writer: " + x);
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();
                }
            }               
        }

    });

    Thread t2 …
Run Code Online (Sandbox Code Playgroud)

java concurrency multithreading

5
推荐指数
1
解决办法
150
查看次数